Ejemplo n.º 1
0
        private void button_click(object sender, EventArgs e)
        {
            if ((TextShow.Text == "0") || (isperform))
            {
                TextShow.Clear();
            }
            isperform = false;
            Button button = (Button)sender;

            if (button.Text == ".")
            {
                if (!TextShow.Text.Contains("."))
                {
                    TextShow.Text = TextShow.Text + button.Text;
                }
            }
            else
            {
                TextShow.Text = TextShow.Text + button.Text;
            }
        }
Ejemplo n.º 2
0
 private void btnComClear_Click(object sender, EventArgs e)
 {
     TextShow.Clear();
 }