Exemple #1
0
 private void ButtonClickProcessor(int value)
 {
     if (TimerController.Instance.GetCurrentTimerValue() >= 3)
     {
         txtScreen.Text = DataController.Data().MainScreenText += value;
     }
     else if (TimerController.Instance.GetCurrentTimerValue() <= 1)
     {
         if (_tempTimerValue + 2 >= TimerController.Instance.GetMainTimerValue())
         {
             if (_isFirsTuch)
             {
                 txtScreen.Text = DataController.Data().MainScreenText += ButtonController.GetSymbol(value);
                 T9Control(ButtonController.GetSymbol(value));
                 lblT9.Text = MobileFunctions.Instance.SudgestWords(tNineString);
                 ButtonController.IncrementValue(value);
                 _isFirsTuch     = false;
                 _tempTimerValue = TimerController.Instance.GetMainTimerValue();
                 return;
             }
             else
             {
                 _isFirsTuch    = false;
                 txtScreen.Text = MobileFunctions.Instance.DeleteSymbol();
                 txtScreen.Text = DataController.Data().MainScreenText += ButtonController.GetSymbol(value);
                 T9Control(ButtonController.GetSymbol(value));
                 lblT9.Text = MobileFunctions.Instance.SudgestWords(tNineString);
                 ButtonController.IncrementValue(value);
                 _tempTimerValue = TimerController.Instance.GetMainTimerValue();
                 return;
             }
         }
         else
         {
             _isFirsTuch = true;
             ButtonController.ClearValue();
             txtScreen.Text = DataController.Data().MainScreenText += ButtonController.GetSymbol(value);
             T9Control(ButtonController.GetSymbol(value));
             lblT9.Text      = MobileFunctions.Instance.SudgestWords(tNineString);
             _tempTimerValue = TimerController.Instance.GetMainTimerValue();
             return;
         }
     }
 }