Пример #1
0
        private void ChangeKeyOrientation()
        {
            switch (AppController.KeyboardLayout)
            {
            case KeyboardLayoutType.US:
                AppController.SwitchKeyboardLayout(KeyboardLayoutType.European);
                Redraw();
                break;

            case KeyboardLayoutType.European:
                AppController.SwitchKeyboardLayout(KeyboardLayoutType.US);
                Redraw();
                break;

            default:
                AppController.SwitchKeyboardLayout(KeyboardLayoutType.US);
                Redraw();
                break;
            }
            // In order to remember the choice..
            AppController.AddCustomLayout();
        }