private void Equals_btn_Click(object sender, EventArgs e) { Rhs_lbl.Text = textBox1.Text; textBox1.Text = calc.Equals().ToString(); Tape_txtBox.AppendText(Rhs_lbl.Text + "\n"); Ans_lbl.Text = textBox1.Text; }
private void Subtract_btn_Click(object sender, EventArgs e) { Op_lbl.Text = Subtract_btn.Text; Lhs_lbl.Text = textBox1.Text; Tape_txtBox.AppendText(Lhs_lbl.Text + "\n"); textBox1.Clear(); calc.Subtraction_entered(); }
private void Multiply_btn_Click(object sender, EventArgs e) { Op_lbl.Text = Multiply_btn.Text; Lhs_lbl.Text = textBox1.Text; Tape_txtBox.AppendText(Lhs_lbl.Text + "\n"); textBox1.Clear(); calc.Multiplication_entered(); }
private void Sqroot_btn_Click(object sender, EventArgs e) { Op_lbl.Text = Sqroot_btn.Text; Lhs_lbl.Text = textBox1.Text; Tape_txtBox.AppendText(Lhs_lbl.Text + "\n"); textBox1.Clear(); calc.Square_root_entered(); Ans_lbl.Text = calc.Equals().ToString(); }