Example #1
0
 private void StopFocusMonitor()
 {
     if (FocusMonitor.GetInstance().IsRunning)
     {
         FocusMonitor.GetInstance().Stop();
         FocusMonitor.GetInstance().Heartbeat -= SwitchPreviewRemoteInvoke;
     }
 }
Example #2
0
 private void RunFocusMonitor()
 {
     if (!FocusMonitor.GetInstance().IsRunning)
     {
         FocusMonitor.GetInstance().Start();
         FocusMonitor.GetInstance().Heartbeat += SwitchPreviewRemoteInvoke;
     }
 }
Example #3
0
 private void StopFocusMonitor()
 {
     FocusMonitor.GetInstance().Stop();
 }
Example #4
0
 private void RunFocusMonitor()
 {
     FocusMonitor.GetInstance().Start();
 }
Example #5
0
 internal static FocusMonitor GetInstance()
 {
     return(_instance ?? (_instance = new FocusMonitor()));
 }