예제 #1
0
 private void sqrt_Click(Object sender, EventArgs e)
 {
     Unar_Operator = "Sqrt";
     try
     {
         Unar_Operators?.Invoke(this, EventArgs.Empty);
     }
     catch
     {
         result_window.Text = "Divide by zero -> hit C";
         foreach (Control item in Controls)
         {
             if (item as Button != null)
             {
                 (item as Button).Enabled = false;
             }
         }
         reset.Enabled = true;
     }
     equals.Focus();
 }
예제 #2
0
 private void CE_Click(Object sender, EventArgs e)
 {
     Unar_Operator = "CE";
     Unar_Operators?.Invoke(this, EventArgs.Empty);
     equals.Focus();
 }