public AbstractLayoutStrategy(SharedgeForm form) { this.Form = form; }
public RightSideLayoutStrategy(SharedgeForm form) : base(form) { }
public void SendMousePosition(Point relativePosition,SharedgeForm.CURSOR_KIND cursorKind) { lock (syncRoot) { if (!MouseConnectionBussy) { MouseConnectionBussy = true; EnqueueAction(() => { try { var sw = GetMouseConnection().Writer; sw.Write((int)MESSAGE_TYPES.MOUSE_MOVE); sw.Write(relativePosition.X); sw.Write(relativePosition.Y); sw.Write((int)cursorKind); sw.Flush(); } catch (Exception) { MouseConnection = null; } finally { MouseConnectionBussy = false; } }); } } }