if(ChartControl != null)
{
cursorPointX = ChartingExtensions.ConvertToHorizontalPixels(Chart Control.MouseDownPoint.X, ChartControl);
}
else ??
{
// some code?
}
I mean once ChartControl is null it cant be used? It has to be replaced by something else, but by what?
What about
What about:
int bar = Math.Abs(ChartBars.GetBarIdxByX(ChartControl, cursorPointX) - ChartBars.ToIndex);
Do i have to create a private int bar = 0; or can i keep the actual syntax? If i declare a variable can it be done in OBU or it must be done at class level?
I am starting to see the big picture. OBU dont provide as much freedom as OR. Draw that line OBU or OR comes to how strong is your C# knowledge.

Comment