Exemple #1
0
        public static string GetbootstrapColorRandom()
        {
            Random r = new Random();
            BootstrapColorEnums randomcolor = (BootstrapColorEnums)r.Next(0, 4);

            return(Enum.GetName(typeof(BootstrapColorEnums), randomcolor));
        }
Exemple #2
0
 public static string GetbootstrapColorByTag(BootstrapColorEnums colortag)
 {
     return(Enum.GetName(typeof(BootstrapColorEnums), colortag));
 }
Exemple #3
0
        public static string GetbootstrapColorRandomByCounter(int i)
        {
            BootstrapColorEnums randomcolor = (BootstrapColorEnums)(i % 5);

            return(Enum.GetName(typeof(BootstrapColorEnums), randomcolor));
        }