Ejemplo n.º 1
0
 protected static void OnHotKeyPressed(HotKeyEventArgs e)
 {
     if (HotKeyPressed != null)
     {
         HotKeyPressed(null, e);
     }
 }
Ejemplo n.º 2
0
        private void ManageHotKeys(object sender, HotKeyEventArgs e)
        {
            if (e.Modifiers == KeyModifiers.Alt)
            {
                if (e.Key == Keys.S)
                {
                    ShowStudentListForm();
                }
                if (e.Key == Keys.V)
                {
                    ShowScheduleForm();
                }
                if (e.Key == Keys.T)
                {
                    ShowTeacherScheduleForm();
                }
                if (e.Key == Keys.C)
                {
                    ShowChangesForm();
                }
                if (e.Key == Keys.A)
                {
                    ShowBuildingForm();
                }
                if (e.Key == Keys.N)
                {
                    ShowNotesForm();
                }
                if (e.Key == Keys.P)
                {
                    ShowPhonesForm();
                }
                if (e.Key == Keys.R)
                {
                    ShowEditScheduleForm();
                }
                if (e.Key == Keys.L)
                {
                    ShowLessonListByTfd();
                }
                if (e.Key == Keys.D)
                {
                    ShowDailyLessons();
                }
            }

            if (e.Modifiers == (KeyModifiers.Alt | KeyModifiers.Shift))
            {
                if (e.Key == Keys.T)
                {
                    ShowTeacherLessons();
                }
            }

            if (e.Modifiers == (KeyModifiers.Control | KeyModifiers.Shift))
            {
                if (e.Key == Keys.T)
                {
                    ShowTeacherHours();
                }
            }

            if (e.Modifiers == (KeyModifiers.Control | KeyModifiers.Alt))
            {
                if (e.Key == Keys.S)
                {
                    ShowSession();
                }
            }
        }
Ejemplo n.º 3
0
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == WmHotkey)
                {
                    var e = new HotKeyEventArgs(m.LParam);
                    OnHotKeyPressed(e);
                }

                base.WndProc(ref m);
            }