public void MouseUp(MouseEventArgsExtend args) { if (this.lastClickPoint != null) { this.OnMouseUp(args); this.lastClickPoint = null; } }
public void MouseMove(MouseEventArgsExtend args) { if (this.OperationFlag.HasFlag(OperationMask.MoveFlag) && this.lastClickPoint != null) { this.OnMouseMove(args); this.lastClickPoint = args.Point; } }
public void MouseUp(MouseEventArgsExtend args) { if (this.lastClickPoint == null) { return; } this.OnMouseUp(args); this.lastClickPoint = (CocoStudio.Model.PointF)null; }
public void MouseMove(MouseEventArgsExtend args) { if (!this.OperationFlag.HasFlag((Enum)OperationMask.MoveFlag) || this.lastClickPoint == null) { return; } this.OnMouseMove(args); this.lastClickPoint = args.Point; }
protected override void OnMouseMove(MouseEventArgsExtend args) { if (this.lastClickPoint == null) { return; } PointF parent = this.canvasEntity.TransformToParent(args.Point); this.Position = new PointF(this.Position.X + parent.X - this.lastClickPoint.X, this.Position.Y + parent.Y - this.lastClickPoint.Y); this.lastClickPoint = parent; args.Handled = true; }
protected override void OnMouseMove(MouseEventArgsExtend args) { if (base.lastClickPoint != null) { PointF pointF = this.canvasEntity.TransformToParent(args.Point); float x = this.Position.X + pointF.X - base.lastClickPoint.X; float y = this.Position.Y + pointF.Y - base.lastClickPoint.Y; this.Position = new PointF(x, y); base.lastClickPoint = pointF; args.Handled = true; } }
protected override void OnMouseMove(MouseEventArgsExtend args) { }
protected virtual void OnMouseDoubleClick(MouseEventArgsExtend args) { }
protected virtual void OnMouseUp(MouseEventArgsExtend args) { }
public void MouseDoubleClick(MouseEventArgsExtend args) { this.OnMouseDoubleClick(args); }
public void MouseDown(MouseEventArgsExtend args) { this.lastClickPoint = args.Point; this.OnMouseDown(args); }
protected override void OnMouseDoubleClick(MouseEventArgsExtend args) { TextEditorWindow textEditorWindow = new TextEditorWindow(this, "PlaceHolderText", null, "FontSize", false); }
protected override void OnMouseDoubleClick(MouseEventArgsExtend args) { TextEditorWindow textEditorWindow = new TextEditorWindow((object)this, "LabelText", "CColor", "FontSize", true); }
protected override void OnMouseDoubleClick(MouseEventArgsExtend args) { TextEditorWindow textEditorWindow = new TextEditorWindow(this, "LabelText", null, null, false); }
protected override void OnMouseDoubleClick(MouseEventArgsExtend args) { TextEditorWindow textEditorWindow = new TextEditorWindow((object)this, "LabelText", "CColor", (string)null, false); }
protected override void OnMouseDoubleClick(MouseEventArgsExtend args) { TextEditorWindow textEditorWindow = new TextEditorWindow((object)this, "ButtonText", "TextColor", "FontSize", false); }