public void Stop()
 {
     _Running = false;
     //if(_LastImage != null)
     //    _LastImage.Dispose();
     _LastImage = null;
     if(_DesktopInfo != null)
         _DesktopInfo.Dispose();
     _DesktopInfo = null;
     if(_MouseCapture != null)
         _MouseCapture.Dispose();
     _MouseCapture = null;
     if(_ScreenCapture != null)
         _ScreenCapture.Dispose();
     _ScreenCapture = null;
 }
 public void Start()
 {
     _Running = true;
     _ScreenCapture = new Desktop_Sharing_Shared.Screen.ScreenCapture(80);
     _KeyboardEvents = new List<Desktop_Sharing_Shared.Keyboard.KeyboardEventStruct>();
     _MouseEvents = new List<Desktop_Sharing_Shared.Mouse.MouseEventStruct>();
     _DesktopInfo = new Desktop_Sharing_Shared.Desktop.DesktopInfo();
     _MouseCapture = new Desktop_Sharing_Shared.Mouse.MouseCapture();
     _MouseCapture.MouseImageChangedEvent += _MouseCapture_MouseImageChangedEvent;
     _MouseCapture.MousePositionChangedEvent += _MouseCapture_MousePositionChangedEvent;
     _LastImage = _ScreenCapture.GetScreen(new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height));
     _Start();
 }