Exemple #1
0
 private void Update()
 {
     if (ResultPanel == null || ErrorLabel == null)
     {
         return;
     }
     if ((!R1.IsEnabled) && (!R2.IsEnabled) && (!R3.IsEnabled) && (!E1.GetLineText(0).Equals("0") || !E2.GetLineText(0).Equals("0")))
     {
         ResultPanel.Visibility = Visibility.Hidden;
         ErrorLabel.Visibility  = Visibility.Visible;
     }
     else
     {
         ResultPanel.Visibility = Visibility.Visible;
         ErrorLabel.Visibility  = Visibility.Hidden;
     }
 }