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; } }
private void TrayClickTimer_Interval(object sender, EventArgs e) { if (_trayClickCount == 1) { _trayClickCount = 0; _trayClickTimer.Stop(); TaskHandler.ExecuteTask(SettingsManager.MainFormSettings.On_Tray_Left_Click); } }
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; } }
private void ScreenColorPicker_Click(object sender, EventArgs e) { TaskHandler.ExecuteTask(Function.ScreenColorPicker); }
private void ClipFromFile_Click(object sender, EventArgs e) { TaskHandler.ExecuteTask(Function.NewClipFromFile); }
private void NewClip_Click(object sender, EventArgs e) { TaskHandler.ExecuteTask(Function.NewClipFromRegionCapture); }
private void LastRegionCapture_Click(object sender, EventArgs e) { TaskHandler.ExecuteTask(Function.CaptureLastRegion); }
private void FullscreenCapture_Click(object sender, EventArgs e) { TaskHandler.ExecuteTask(Function.CaptureFullScreen); }
private void MonitorCapture_Click(object sender, EventArgs e) { TaskHandler.ExecuteTask(Function.CaptureActiveMonitor); }