namespace WindowsFormsApplication1
{
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private double valHolder1; private double valHolder2; private double tmpValue; private bool hasDecimal = false; private bool inputStatus = true; private string calcFunc;
private void btn9_Click(object sender, EventArgs e) { if (inputStatus) { txtInput.Text += btn9.Text; } else { txtInput.Text = btn9.Text; inputStatus = true; } }
private void btn8_Click(object sender, EventArgs e) { if (inputStatus) { txtInput.Text += btn8.Text; } else { txtInput.Text = btn8.Text; inputStatus = true; } }
private void btn7_Click(object sender, EventArgs e) { if (inputStatus) { txtInput.Text += btn7.Text; } else { txtInput.Text = btn7.Text; inputStatus = true; } }
private void btn6_Click(object sender, EventArgs e) { if (inputStatus) { txtInput.Text += btn6.Text; } else { txtInput.Text = btn6.Text; inputStatus = true; } }
private void btn5_Click(object sender, EventArgs e) { if (inputStatus) {