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); } }
private void Plus_Click(object sender, EventArgs e) { val1 = this.OutCalc.Text.Trim(); button = this.Plus; ClearValue.ClerText(this.OutCalc); }
private void Share_Click(object sender, EventArgs e) { val1 = this.OutCalc.Text.Trim(); //Присваеваем первое значение button = this.Share; //Присваеваем для метода calculator ClearValue.ClerText(this.OutCalc); //Очищаем TexBox }