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 StopFocusMonitor() { FocusMonitor.GetInstance().Stop(); }
private void RunFocusMonitor() { FocusMonitor.GetInstance().Start(); }
internal static FocusMonitor GetInstance() { return(_instance ?? (_instance = new FocusMonitor())); }