private void StopFocusMonitor() { if (FocusMonitor.GetInstance().IsRunning) { FocusMonitor.GetInstance().Stop(); FocusMonitor.GetInstance().Heartbeat -= SwitchPreviewRemoteInvoke; } }
private void RunFocusMonitor() { if (!FocusMonitor.GetInstance().IsRunning) { FocusMonitor.GetInstance().Start(); FocusMonitor.GetInstance().Heartbeat += SwitchPreviewRemoteInvoke; } }
private void RunFocusMonitor() { FocusMonitor.GetInstance().Start(); }
private void StopFocusMonitor() { FocusMonitor.GetInstance().Stop(); }