Пример #1
0
        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);
        }
Пример #2
0
 private void MRClick(object sender, EventArgs e)
 {
     tbDisplay.Text = Kalkulacka.ziskejZPameti(Convert.ToString(MemoryStore), tbDisplay.Text);
 }
Пример #3
0
 private void MSClick(object sender, EventArgs e)
 {
     MemoryStore = Kalkulacka.ulozDoPameti(Convert.ToDecimal(tbDisplay.Text));
 }
Пример #4
0
 private void smazatJedenZnakClick(object sender, EventArgs e)
 {
     tbDisplay.Text = Kalkulacka.smazatJedenZnak(tbDisplay.Text);
 }
Пример #5
0
 private void smazatVseClick(object sender, EventArgs e)
 {
     tbDisplay.Text = Kalkulacka.smazatVse(tbDisplay.Text);
 }
Пример #6
0
 private void btnVypocet(object sender, EventArgs e)
 {
     tbDisplay.Text = Kalkulacka.vypocitej(tbDisplay.Text);
 }