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

            viewQueue = ShowView(viewQueue, Properties.Settings.Default.ViewQueue);
            menuItemViewQueue.Checked = Properties.Settings.Default.ViewQueue;
        }
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);
            }
        }