예제 #1
0
 private void IncrementIndex(int index)
 {
     if (listButtons[index] is UINumericalButton)
     {
         UINumericalButton numButton = (UINumericalButton)listButtons[index];
         numButton.increment();
     }
 }
예제 #2
0
        public UINumericalButton AddNumericalButton(String text, String desc, int value, int max, int min)
        {
            if (listButtons.Count == 1)
            {
                SelectIndex(0);
            }
            UINumericalButton btn = new UINumericalButton(text, desc, 5, y_spacing * listButtons.Count, value, max, min, Color.White);

            listButtons.Add(btn);
            return(btn);
        }