private void Button1_Click_1(object sender, EventArgs e) { if (calculator.Mode == null) { calculator.Mode = "Add"; } else { calculator.Answer(int.Parse(textBox2.Text)); calculator.Mode = "Add"; label1.Text = calculator.Log; } }