Beispiel #1
0
 private void buttonCClick(object sender, RoutedEventArgs e)
 {
     textBlockCurrentChaineCalc.Visibility = Visibility.Hidden;
     c = new Calcul();
     CurrentChaineCalc = "0";
     CurrentResult     = "0";
 }
Beispiel #2
0
 public Calculatrice()
 {
     InitializeComponent();
     //2-initialiser unCalcul
     unCalcul = new Calcul();
     //https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.checkedlistbox?view=netframework-4.8
     // https://docs.microsoft.com/en-us/dotnet/api/system.enum.getnames?view=netframework-4.8
     //3-populer les checkbox
     checkedListOperation.Items.AddRange(Enum.GetNames(typeof(OperationType)));
 }
Beispiel #3
0
 private void triggerCalc()
 {
     if (c.ChaineCalc != "0")
     {
         textBlockCurrentChaineCalc.Visibility = Visibility.Hidden;
         c.processCalc();
         MyList.Add(c);
         c = new Calcul(c.Result.ToString());
     }
 }