private void buttonCClick(object sender, RoutedEventArgs e) { textBlockCurrentChaineCalc.Visibility = Visibility.Hidden; c = new Calcul(); CurrentChaineCalc = "0"; CurrentResult = "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))); }
private void triggerCalc() { if (c.ChaineCalc != "0") { textBlockCurrentChaineCalc.Visibility = Visibility.Hidden; c.processCalc(); MyList.Add(c); c = new Calcul(c.Result.ToString()); } }