Ejemplo n.º 1
0
        void kh_OnKeyDownEvent(object sender, KeyEventArgs e)

        {
            if (e.KeyData == (Keys.S | Keys.Control))
            {
                if (sysStatus == false && monStatus == false)
                {
                    sys       = new TestSystem(this);
                    sysStatus = true;
                    sys.ShowDialog();
                }
            }//Ctrl+S显示窗口

            if (e.KeyData == (Keys.M | Keys.Control))
            {
                if (monStatus == false && sysStatus == false)
                {
                    monery    = new TestMonery(this);
                    monStatus = true;
                    monery.ShowDialog();
                }
            }//Ctrl+S显示窗口


            if (e.KeyData == (Keys.H | Keys.Control))
            {
                if (sysStatus == true)
                {
                    sysStatus = false;
                    sys.Close();
                }
                if (monStatus == true)
                {
                    monStatus = false;
                    monery.Close();
                }
            }//Ctrl+H隐藏窗口
        }
Ejemplo n.º 2
0
 private void SystemSet_Click(object sender, EventArgs e)
 {
     sys       = new TestSystem(this);
     sysStatus = true;
     sys.Show();
 }