Ejemplo n.º 1
0
 public static KeyboardHooker GetInstance()
 {
     if (_hooker == null)
     {
         _hooker = new KeyboardHooker();
     }
     return(_hooker);
 }
Ejemplo n.º 2
0
        public WndRzForm()
        {
            InitializeComponent();
            _keyboardHooker = KeyboardHooker.GetInstance();
            _windowResizer  = WindowResizer.GetInstance();
            _screenWidth    = Screen.PrimaryScreen.WorkingArea.Width;
            _screenHeight   = Screen.PrimaryScreen.WorkingArea.Height;

            _model = new WndRzModel(_screenWidth, _screenHeight);
        }