Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();
            AllowTransparency = true;
            presenter = new MainFormPresenter(this, new JediSettings());

            mouseHook = new MouseHook();
            mouseHook.MouseEvent += MouseHookMouseEvent;
            keyboardHook = new KeyboardHook();
            keyboardHook.KeyboardEvent += KeyboardHookKeyboardEvent;
            mgr.ShortcutActivated += mgr_OnShortcutActivated;
            keyboardHook.InstallHook();
        }
 public void SetUp()
 {
     viewMock = new Mock<IMainFormView>();
     jediSettingsMock = new Mock<IJediSettings>();
     mainFormPresenter = new MainFormPresenter(viewMock.Object, jediSettingsMock.Object);
 }