示例#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);
 }