//Other Events private void sqr_function_Click(object sender, EventArgs e) { if (ioScreen.Text != "" && ioScreen.Text != "0") { n = PEMDAS.other_ops(n, "sqr"); ioScreen.Text = String.Empty; ioScreen.Text += n; } }
private void reciprocal_Click(object sender, EventArgs e) { if (ioScreen.Text != "" && ioScreen.Text != "0") { n = PEMDAS.other_ops(n, "reciprocal"); ioScreen.Text = String.Empty; ioScreen.Text += n; } }
private void percent_Click(object sender, EventArgs e) { if (PEMDAS.nums.Count != 0) { n = PEMDAS.other_ops(n, "percent"); ioScreen.Text = String.Empty; ioScreen.Text += n; equal.PerformClick(); } }