public static KeyboardHooker GetInstance() { if (_hooker == null) { _hooker = new KeyboardHooker(); } return(_hooker); }
public WndRzForm() { InitializeComponent(); _keyboardHooker = KeyboardHooker.GetInstance(); _windowResizer = WindowResizer.GetInstance(); _screenWidth = Screen.PrimaryScreen.WorkingArea.Width; _screenHeight = Screen.PrimaryScreen.WorkingArea.Height; _model = new WndRzModel(_screenWidth, _screenHeight); }