Exemple #1
0
 public static Color GetRandomSchemeColor(ColorScheme colorScheme)
 {
     if (colorScheme == null || !colorScheme.Any())             //this is for ColorScheme.All
     {
         return(GetRandomColor());
     }
     else
     {
         return(colorScheme.ElementAt(ProgramCommon.RandomIntBetween(0, colorScheme.Count)));
     }
 }
Exemple #2
0
 public static Color GetRandomColor()
 {
     return(Color.FromArgb(ProgramCommon.RandomIntBetween(0, 255), ProgramCommon.RandomIntBetween(0, 255), ProgramCommon.RandomIntBetween(0, 255)));
 }