Пример #1
0
        private void Equally_Click(object sender, EventArgs e)
        {
            if (val1 != "")
            {
                val2 = this.OutCalc.Text.Trim();
                ClearValue.ClerText(this.OutCalc);

                this.OutCalc.Text = Calculator.calculator(button, val1, val2);
            }
        }
Пример #2
0
 private void Plus_Click(object sender, EventArgs e)
 {
     val1   = this.OutCalc.Text.Trim();
     button = this.Plus;
     ClearValue.ClerText(this.OutCalc);
 }
Пример #3
0
 private void Share_Click(object sender, EventArgs e)
 {
     val1   = this.OutCalc.Text.Trim(); //Присваеваем первое значение
     button = this.Share;               //Присваеваем для метода calculator
     ClearValue.ClerText(this.OutCalc); //Очищаем TexBox
 }