Ejemplo n.º 1
0
 private void ShowMoveMouse(bool suppressAutoStart)
 {
     if ((_moveMouse == null) || (_moveMouse.IsDisposed))
     {
         _moveMouse = new MouseForm(suppressAutoStart);
         _moveMouse.BlackoutStatusChanged            += _moveMouse_BlackoutStatusChanged;
         _moveMouse.NewVersionAvailable              += _moveMouse_NewVersionAvailable;
         _moveMouse.ScheduleArrived                  += _moveMouse_ScheduleArrived;
         _moveMouse.FormClosing                      += _moveMouse_FormClosing;
         _moveMouse.PowerLineStatusChanged           += _moveMouse_PowerLineStatusChanged;
         _moveMouse.PowerShellexecutionPolicyWarning += _moveMouse_PowerShellexecutionPolicyWarning;
         _moveMouse.HookKeyStatusChanged             += _moveMouse_HookKeyStatusChanged;
         _moveMouse.MoveMouseStarted                 += _moveMouse_MoveMouseStarted;
         _moveMouse.MoveMousePaused                  += _moveMouse_MoveMousePaused;
         _moveMouse.MoveMouseStopped                 += _moveMouse_MoveMouseStopped;
         _moveMouse.FormBorderStyle                   = StaticCode.EnableToolWindowStyle ? FormBorderStyle.FixedToolWindow : FormBorderStyle.FixedSingle;
         _moveMouse.Show();
     }
     else
     {
         _moveMouse.ShowInTaskbar = true;
         _moveMouse.WindowState   = FormWindowState.Normal;
         _moveMouse.Activate();
         _moveMouse.BringToFront();
     }
 }
Ejemplo n.º 2
0
        private void mouseButton_Click(object sender, EventArgs e)
        {
            MouseForm form = new MouseForm();

            Hide();
            form.Show();
        }
Ejemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var keyboardForm = new KeyboardForm();
            var mouseForm = new MouseForm();
            var menuForm = new MenuForm();

            keyboardForm.Set_Form_References(mouseForm, menuForm);
            menuForm.Set_Form_References(keyboardForm, mouseForm);

            keyboardForm.Show();
            mouseForm.Show();

            Application.Run();
        }