Forum: NinjaTrader
October 10th, 2010, 03:40 PM
|
Replies: 9
Views: 3,484
|
Forum: NinjaTrader
October 10th, 2010, 03:16 PM
|
Replies: 9
Views: 3,484
try like this
public int ValueToShow
{
...
try like this
public int ValueToShow
{
get{return valuetoshow;}
set{valuetoshow = Math.Max(2,value); //minimum value 2
if (valuetoshow % 2 != 0) valuetoshow -= 1; } ...
|