Exemplo n.º 1
0
        public virtual void OnThresholdExceeded(ThresholdExceededEventArgs e2)
        {
            ExceededThresholdEventHandler handler2 = ExceededThreshold;

            if (handler2 != null)
            {
                handler2(this, e2);
            }
        }
Exemplo n.º 2
0
 public void CheckKey()
 {
     attempts++;
     if (attempts > LetterOptions.letterOptions.Count)
     {
         ThresholdExceededEventArgs e2 = new ThresholdExceededEventArgs();
         e2.userAttempts = attempts;
         OnThresholdExceeded(e2);
     }
     if (userkey == secretletter)
     {
         ButtonFoundEventArgs e = new ButtonFoundEventArgs();
         e.key = secretletter;
         OnCorrectButtonClicked(e);
     }
 }