예제 #1
0
 public CustomBackgroundBlock(long start, long length, bool setRandomBrush = true)
 {
     StartOffset = start;
     Length      = length;
     if (setRandomBrush)
     {
         Color = RandomBrushes.PickBrush();
     }
 }
예제 #2
0
 /// <summary>
 /// Set a random brush to this instance
 /// </summary>
 public void SetRandomColor() => Color = RandomBrushes.PickBrush();