Пример #1
0
        private void keyboardSizeChangedHandler(object sender, EventArgs e)
        {
            KeyboardSizeControl k = sender as KeyboardSizeControl;

            KeyboardWidth  = k.GetTxtWidth();
            KeyboardHeight = k.GetTxtHeight();
            Properties.Settings.Default.keyboardWidth  = KeyboardWidth;
            Properties.Settings.Default.keyboardHeight = KeyboardHeight;
            Properties.Settings.Default.Save();
        }
Пример #2
0
        private void keyboardSizeChangedHandler(object sender, EventArgs e)
        {
            KeyboardSizeControl k     = sender as KeyboardSizeControl;
            int KeyboardWidthSetting  = k.GetTxtWidth();
            int KeyboardHeightSetting = k.GetTxtHeight();

            if (KeyboardWidthSetting < 0 || KeyboardWidthSetting > Corale.Colore.Razer.Keyboard.Constants.MaxColumns || KeyboardHeightSetting < 0 || KeyboardHeightSetting > Corale.Colore.Razer.Keyboard.Constants.MaxRows)
            {
                k.errorReport("Input invalid");
                return;
            }

            KeyboardHeight = KeyboardHeightSetting;
            KeyboardWidth  = KeyboardWidthSetting;


            Properties.Settings.Default.keyboardWidth  = KeyboardWidthSetting;
            Properties.Settings.Default.keyboardHeight = KeyboardHeightSetting;
            Properties.Settings.Default.Save();
        }