private void btnClick(object sender, EventArgs e) { Button btn = (Button)sender; string vystup; if (Kalkulacka.jeOperator(btn.Text)) { vystup = " " + btn.Text + " "; } else { vystup = btn.Text; } updateDisplay(vystup); }
private void MRClick(object sender, EventArgs e) { tbDisplay.Text = Kalkulacka.ziskejZPameti(Convert.ToString(MemoryStore), tbDisplay.Text); }
private void MSClick(object sender, EventArgs e) { MemoryStore = Kalkulacka.ulozDoPameti(Convert.ToDecimal(tbDisplay.Text)); }
private void smazatJedenZnakClick(object sender, EventArgs e) { tbDisplay.Text = Kalkulacka.smazatJedenZnak(tbDisplay.Text); }
private void smazatVseClick(object sender, EventArgs e) { tbDisplay.Text = Kalkulacka.smazatVse(tbDisplay.Text); }
private void btnVypocet(object sender, EventArgs e) { tbDisplay.Text = Kalkulacka.vypocitej(tbDisplay.Text); }