예제 #1
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.Escape)
            {
                this.Close();
                return true;
            } else if (keyData == Keys.F12)
            {
                disableClickCapture = true;

                //Show the options panel
                this.Hide();
                OptionsMenu options = new OptionsMenu(this);
                if (options.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    //Set the values and start/stop the timer
                    zoomLevel = (float)options.numericUpDown1.Value;
                }
                disableClickCapture = false;
                ResetFourSteps();
                return true;
            }
            else
            {
                return base.ProcessCmdKey(ref msg, keyData);
            }
        }