CCT.NUI.Visual.BrushSwitcher.GetNext C# (CSharp) Method

GetNext() public method

public GetNext ( ) : Brush
return System.Drawing.Brush
        public Brush GetNext()
        {
            var result = brushes[currentBrush++];
            if (currentBrush>=brushes.Count)
            {
                currentBrush = 0;
            }
            return result;
        }
    }

Usage Example

Example #1
0
 public override void Paint(Graphics g)
 {
     g.ScaleTransform(this.zoomFactor, this.zoomFactor);
     var brushSwitcher = new BrushSwitcher();
     foreach (var cluster in this.dataSource.CurrentValue.Clusters)
     {
         this.DrawClusterPoints(cluster, g, brushSwitcher.GetNext());
         this.DrawCenter(cluster, g);
     }
 }
All Usage Examples Of CCT.NUI.Visual.BrushSwitcher::GetNext