Exemple #1
0
 public static SliderMenuItem GetRightMenuItem(SliderMenuItem item)
 {
     if ((int)item == Enum.GetNames(item.GetType()).Count() - 1)
     {
         return((SliderMenuItem)(0));
     }
     else
     {
         return((SliderMenuItem)(item + 1));
     }
 }
Exemple #2
0
 public static SliderMenuItem GetLeftMenuItem(SliderMenuItem item)
 {
     if ((int)item == 0)
     {
         return((SliderMenuItem)(Enum.GetNames(item.GetType()).Count() - 1));
     }
     else
     {
         return((SliderMenuItem)(item - 1));
     }
 }