Ejemplo n.º 1
0
        private void switchMode_Click(object sender, EventArgs e)
        {
            if (buttonMode == ButtonMode.Numbers)
            {
                buttonMode = ButtonMode.Ukraine;
            }
            else if (buttonMode == ButtonMode.Ukraine)
            {
                buttonMode = ButtonMode.English;
            }
            else
            {
                buttonMode = ButtonMode.Numbers;
            }

            stringHandler.AbortThread();
            (sender as Button).Text = buttonMode.ToString();
        }