Ejemplo n.º 1
0
 public void MouseUp(MouseEventArgsExtend args)
 {
     if (this.lastClickPoint != null)
     {
         this.OnMouseUp(args);
         this.lastClickPoint = null;
     }
 }
Ejemplo n.º 2
0
 public void MouseMove(MouseEventArgsExtend args)
 {
     if (this.OperationFlag.HasFlag(OperationMask.MoveFlag) && this.lastClickPoint != null)
     {
         this.OnMouseMove(args);
         this.lastClickPoint = args.Point;
     }
 }
Ejemplo n.º 3
0
 public void MouseUp(MouseEventArgsExtend args)
 {
     if (this.lastClickPoint == null)
     {
         return;
     }
     this.OnMouseUp(args);
     this.lastClickPoint = (CocoStudio.Model.PointF)null;
 }
Ejemplo n.º 4
0
 public void MouseMove(MouseEventArgsExtend args)
 {
     if (!this.OperationFlag.HasFlag((Enum)OperationMask.MoveFlag) || this.lastClickPoint == null)
     {
         return;
     }
     this.OnMouseMove(args);
     this.lastClickPoint = args.Point;
 }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
 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;
     }
 }
Ejemplo n.º 7
0
 protected override void OnMouseMove(MouseEventArgsExtend args)
 {
 }
Ejemplo n.º 8
0
 protected virtual void OnMouseDoubleClick(MouseEventArgsExtend args)
 {
 }
Ejemplo n.º 9
0
 protected virtual void OnMouseUp(MouseEventArgsExtend args)
 {
 }
Ejemplo n.º 10
0
 public void MouseDoubleClick(MouseEventArgsExtend args)
 {
     this.OnMouseDoubleClick(args);
 }
Ejemplo n.º 11
0
 public void MouseDown(MouseEventArgsExtend args)
 {
     this.lastClickPoint = args.Point;
     this.OnMouseDown(args);
 }
Ejemplo n.º 12
0
 protected override void OnMouseDoubleClick(MouseEventArgsExtend args)
 {
     TextEditorWindow textEditorWindow = new TextEditorWindow(this, "PlaceHolderText", null, "FontSize", false);
 }
Ejemplo n.º 13
0
 protected override void OnMouseDoubleClick(MouseEventArgsExtend args)
 {
     TextEditorWindow textEditorWindow = new TextEditorWindow((object)this, "LabelText", "CColor", "FontSize", true);
 }
Ejemplo n.º 14
0
 protected override void OnMouseDoubleClick(MouseEventArgsExtend args)
 {
     TextEditorWindow textEditorWindow = new TextEditorWindow(this, "LabelText", null, null, false);
 }
Ejemplo n.º 15
0
 protected override void OnMouseDoubleClick(MouseEventArgsExtend args)
 {
     TextEditorWindow textEditorWindow = new TextEditorWindow((object)this, "LabelText", "CColor", (string)null, false);
 }
Ejemplo n.º 16
0
 protected override void OnMouseDoubleClick(MouseEventArgsExtend args)
 {
     TextEditorWindow textEditorWindow = new TextEditorWindow((object)this, "ButtonText", "TextColor", "FontSize", false);
 }