internal virtual void butEqal_Click(object sender, EventArgs e) { if (!checkedResult) { Result(firstNum); } checkedResult = true; oper = null; FocusTextBox(); }
protected virtual void butAdd_Click(object sender, EventArgs e) { if (!chClickZnack) { if (oper != null) { Result(firstNum); } Reading(sender, e); oper += Add; chClickZnack = true; } FocusTextBox(); }
protected virtual void butDivision_Click(object sender, EventArgs e) { if (!chClickZnack) { if (oper != null) { Result(firstNum); } if (!chClickZnack) { Reading(sender, e); } oper += Divide; chClickZnack = true; } FocusTextBox(); }