private void btn_c_Click(object sender, EventArgs e) { Exibir.Clear(); ban_num = true; ban_ope = true; ban_btn = true; }
private void btn_adicao_Click(object sender, EventArgs e) { operador = "+"; ban_num = true; if (ban_btn == false) { num1 = double.Parse(Exibir.Text); Exibir.Clear(); } }
private void btn5_Click(object sender, EventArgs e) { if (ban_num == true) { Exibir.Clear(); Exibir.Text = "5"; ban_num = false; } else { Exibir.Text = Exibir.Text + "5"; } ban_btn = false; }