Esempio n. 1
0
 private void OnCalculatorValueChanged(CalculatorChangedEventArgs e)
 {
     if (CalculatorValueChanged != null)
     {
         CalculatorValueChanged(this, e);
     }
 }
Esempio n. 2
0
 void calculator_CalculatorValueChanged(object sender, CalculatorChangedEventArgs e)
 {
     if (e.HasError)
     {
         ValueLabel.Text = "err";
     }
     else if (e.OperationType == OperationType.Calculation)
     {
         UpdateValueLabel(e.Result, false);
         ValueLabel.Tag = null;
     }
     else if (e.OperationType == OperationType.Accumulation)
     {
         ValueLabel.Tag = null;
     }
 }