Esempio n. 1
0
        private void ButtonClear_Click(object sender, EventArgs e)
        {
            _firstValue = true;

            TextboxInput.Clear();
            TextboxFormule.Clear();
            LoseFocus();
        }
Esempio n. 2
0
 private void CheckIfFirstValue()
 {
     if (_firstValue)
     {
         TextboxInput.Clear();
         TextboxFormule.Clear();
         _firstValue = false;
     }
 }
Esempio n. 3
0
        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;
        }