Example #1
0
 public static void Stop()
 {
     if (_instance != null)
     {
         _instance._timer.Stop();
         _instance._timer.Tick -= new EventHandler(_instance.TimerTick);
         TouchMouseSensorEventManager.Handler -= _instance.TouchMouseSensorHandler;
         _instance = null;
     }
 }
Example #2
0
 public static void Start()
 {
     _instance = new TouchMouse();
     _instance._timer.Start();
 }