示例#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
 }