Exemple #1
0
        public static int Juice(this HTheme theme)
        {
            if (theme != HTheme.Random)
            {
                return((int)theme);
            }

            lock (RandomThemeLock)
                return(RandomThemeGenerator.Next(0, 30));
        }
Exemple #2
0
 public static int Juice(this HThemes Theme)
 {
     if (Theme != HThemes.Random)
     {
         return((int)Theme);
     }
     else
     {
         lock (RandomThemeLock)
             return(RandomThemeGenerator.Next(0, 30));
     }
 }