Ejemplo n.º 1
0
        private void NiTrayIcon_MouseClick1Up(object sender, MouseEventArgs e)
        {
            switch (e.Button)
            {
            case MouseButtons.Left:
                _trayClickCount++;

                if (_trayClickCount == 1)
                {
                    _trayClickTimer.Start();
                }
                else
                {
                    _trayClickCount = 0;
                    _trayClickTimer.Stop();

                    TaskHandler.ExecuteTask(SettingsManager.MainFormSettings.On_Tray_Double_Click);
                }
                break;

            case MouseButtons.Middle:
                TaskHandler.ExecuteTask(SettingsManager.MainFormSettings.On_Tray_Middle_Click);
                break;
            }
        }
Ejemplo n.º 2
0
        private void TrayClickTimer_Interval(object sender, EventArgs e)
        {
            if (_trayClickCount == 1)
            {
                _trayClickCount = 0;
                _trayClickTimer.Stop();

                TaskHandler.ExecuteTask(SettingsManager.MainFormSettings.On_Tray_Left_Click);
            }
        }
Ejemplo n.º 3
0
        public static void Nyah(ushort id, Keys key, Modifiers modifier)
        {
            Hotkey hotkey = hotKeys.Find(x => x.ID == id);

            if (hotkey != null && !ignoreHotkeyPress && !tempTgnoreHotkeyPress)
            {
                int i = SettingsManager.MainFormSettings.Wait_Hide_Time;
                SettingsManager.MainFormSettings.Wait_Hide_Time = 0;

                TaskHandler.ExecuteTask(hotkey.Callback);

                SettingsManager.MainFormSettings.Wait_Hide_Time = i;
            }
        }
Ejemplo n.º 4
0
 private void ScreenColorPicker_Click(object sender, EventArgs e)
 {
     TaskHandler.ExecuteTask(Function.ScreenColorPicker);
 }
Ejemplo n.º 5
0
 private void ClipFromFile_Click(object sender, EventArgs e)
 {
     TaskHandler.ExecuteTask(Function.NewClipFromFile);
 }
Ejemplo n.º 6
0
 private void NewClip_Click(object sender, EventArgs e)
 {
     TaskHandler.ExecuteTask(Function.NewClipFromRegionCapture);
 }
Ejemplo n.º 7
0
 private void LastRegionCapture_Click(object sender, EventArgs e)
 {
     TaskHandler.ExecuteTask(Function.CaptureLastRegion);
 }
Ejemplo n.º 8
0
 private void FullscreenCapture_Click(object sender, EventArgs e)
 {
     TaskHandler.ExecuteTask(Function.CaptureFullScreen);
 }
Ejemplo n.º 9
0
 private void MonitorCapture_Click(object sender, EventArgs e)
 {
     TaskHandler.ExecuteTask(Function.CaptureActiveMonitor);
 }