public void DrawSelectBlock(Graphics g) { if (drawer.SelectIndex < 0) { return; } SelectedPointInfo blockInfo = GetBlockInfo(drawer.SelectIndex); if (blockInfo == null) { return; } blockInfo.DrawGraph(g, drawer.ColorConfig); }
public void DrawSelectBlock(Graphics g) { if (drawer.SelectIndex < 0) { return; } int index = drawer.SelectIndex > drawer.DataProvider.CurrentIndex ? drawer.DataProvider.CurrentIndex : drawer.SelectIndex; SelectedPointInfo blockInfo = GetBlockInfo(index, drawer.SelectIndex); if (blockInfo == null) { return; } blockInfo.DrawGraph(g, drawer.ColorConfig); }