private void ButtonClear_Click(object sender, EventArgs e) { _firstValue = true; TextboxInput.Clear(); TextboxFormule.Clear(); LoseFocus(); }
private void CheckIfFirstValue() { if (_firstValue) { TextboxInput.Clear(); TextboxFormule.Clear(); _firstValue = false; } }
private void Calculate() { string formule = TextboxFormule.Text + TextboxInput.Text; Calculator.Calculator calc = new Calculator.Calculator(); string solution = calc.Calculate(formule); TextboxFormule.Clear(); TextboxInput.Text = solution; var FormuleSolution = new Dictionary <string, string>(); FormuleSolution.Add(formule, solution); History.Add(FormuleSolution); _firstValue = true; }