예제 #1
0
 private void OnGenerateButtonClick(IItem sender, MouseArgs args)
 {
     if (ValidateInput())
     {
         var eventArgs = new GotCorrectPruferEventArgs
         {
             Code = GetCode()
         };
         OnGotCorrectPruferInput(eventArgs);
         Close();
     }
     else
     {
         _output.SetText("Incorrect Input");
     }
 }
예제 #2
0
        protected virtual void OnGotCorrectPruferInput(GotCorrectPruferEventArgs e)
        {
            var handler = GotCorrectPruferInput;

            handler?.Invoke(this, e);
        }