Exemple #1
0
 public bool ProcessHotkeySequences(HotkeySequence.KeyModifiers keyModifiers)
 {
     foreach (BaseScreenComponent component in components)
     {
         if (component.Enabled && component is Button)
         {
             Button buttonComponent = (Button)component;
             if (buttonComponent.ProcessHotkeySequences(keyModifiers))
             {
                 return(true);
             }
         }
     }
     foreach (BaseScreenComponent component in components)
     {
         if (component.Enabled && component is Panel)
         {
             Panel panelComponent = (Panel)component;
             if (panelComponent.ProcessHotkeySequences(keyModifiers))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
 public HotkeySequence.HotkeySequenceProcessStatus ProcessHotkeySequences(HotkeySequence.KeyModifiers keyModifiers)
 {
     foreach (BaseScreenComponent component in components)
     {
         if (component.Enabled && component is Button)
         {
             Button buttonComponent = (Button)component;
             if (buttonComponent.ProcessHotkeySequences(keyModifiers))
             {
                 return(HotkeySequence.HotkeySequenceProcessStatus.Handled);
             }
         }
     }
     foreach (BaseScreenComponent component in components)
     {
         if (component.Enabled && component is Panel)
         {
             Panel panelComponent = (Panel)component;
             if (panelComponent.ProcessHotkeySequences(keyModifiers) == HotkeySequence.HotkeySequenceProcessStatus.Handled)
             {
                 return(HotkeySequence.HotkeySequenceProcessStatus.Handled);
             }
         }
     }
     return(HotkeySequence.HotkeySequenceProcessStatus.NotFound);
 }