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