Beispiel #1
0
        private void MenuItemViewButtons_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.ViewButtons = !Properties.Settings.Default.ViewButtons;

            viewButtons = ShowView(viewButtons, Properties.Settings.Default.ViewButtons);
            menuItemViewButtons.Checked = Properties.Settings.Default.ViewButtons;
        }
Beispiel #2
0
        protected override void OnShown(EventArgs e)
        {
            menuItemViewButtons.Checked = Properties.Settings.Default.ViewButtons;
            viewButtons = ShowView(viewButtons, Properties.Settings.Default.ViewButtons);

            menuItemViewQueue.Checked = Properties.Settings.Default.ViewQueue;
            viewQueue = ShowView(viewQueue, Properties.Settings.Default.ViewQueue);
        }
Beispiel #3
0
        protected override void OnActivated(EventArgs e)
        {
            menuItemViewButtons.Checked = Properties.Settings.Default.ViewButtons;
            viewButtons = ShowView(viewButtons, Properties.Settings.Default.ViewButtons);

            menuItemViewQueue.Checked = Properties.Settings.Default.ViewQueue;
            viewQueue = ShowView(viewQueue, Properties.Settings.Default.ViewQueue);

            WindowHandleUtils.HideCaret(textBoxInputStream.Handle);

            base.OnActivated(e);
        }
Beispiel #4
0
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            // Really close application if either control key is held
            if (Keyboard.IsKeyDown(Keys.LControlKey) || Keyboard.IsKeyDown(Keys.RControlKey))
            {
                base.OnFormClosing(e);
            }
            // Don't actually close the form - app is still on system tray
            else
            {
                e.Cancel = true;

                Hide();
                viewButtons     = ShowView(viewButtons, false);
                viewQueue       = ShowView(viewQueue, false);
                viewControllers = ShowView(viewControllers, false);

                base.OnFormClosing(e);
            }
        }