Esempio n. 1
0
        private void buttonOper_Click(object sender, EventArgs e)
        {
            Button buttonOper = (Button)sender;

            kalkulacka.Vysledek = double.Parse(textBoxVysledek.Text);

            operText = buttonOper.Text;

            kalkulacka.OverOperatora(operText);
            if (kalkulacka.OverOperatora(operText) == true)
            {
                textBoxVysledek.Text     = textBoxVysledek.Text + buttonOper.Text;
                labelZobrazPocitani.Text = (kalkulacka.Vysledek + " " + operText);
            }

            textBoxVysledek.Clear();
        }