public static HotKeys GetDefault() { var hotKeys = new HotKeys { BottomLeftHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad1), BottomHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad2), BottomRightHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad3), LeftHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad4), RightHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad6), TopLeftHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad7), TopHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad8), TopRightHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad9), CenterHotKey = new HotKey(ModifierKeys.Windows, Keys.NumPad5), HorizontalCenterHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.NumPad4), VerticalCenterHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.NumPad8), TopMostHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.NumPad0), BottomMostHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.NumPad1), ShowSizeSelectionWindowHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.Space), IncreaseTransparencyHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.Subtract), DecreaseTransparencyHotKey = new HotKey(ModifierKeys.Windows | ModifierKeys.Alt, Keys.Add), ExtendBottomHotKey = HotKey.None(), ExtendLeftHotKey = HotKey.None(), ExtendRightHotKey = HotKey.None(), ExtendTopHotKey = HotKey.None(), FullScreenHotKey = HotKey.None(), MinimizeWindowHotKey = HotKey.None(), ReduceBottomHotKey = HotKey.None(), ReduceLeftHotKey = HotKey.None(), ReduceRightHotKey = HotKey.None(), ReduceTopHotKey = HotKey.None(), SwitchScreenHotKey = HotKey.None(), }; return(hotKeys); }
public void CreateHotKeys(string name) { HotKeys = HotKeys.GetDefault(); HotKeys.Name = name; CurrentHotKeys = name; }