示例#1
0
        public override void ChangeValue(ChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 0x597:
            {
                this.A = e.GetPoint(undo);
                return;
            }

            case 0x598:
            {
                this.B = e.GetPoint(undo);
                return;
            }

            case 0x599:
            {
                this.C = e.GetPoint(undo);
                return;
            }

            case 0x59a:
            {
                PointF[] tfArray1 = (PointF[])e.GetValue(undo);
                this.myPoints = tfArray1;
                base.ResetPath();
                base.InvalidBounds = true;
                this.Changed(0x59a, 0, null, DiagramShape.NullRect, 0, null, DiagramShape.NullRect);
                return;
            }
            }
            base.ChangeValue(e, undo);
        }
示例#2
0
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x597:
             {
                 this.A = e.GetPoint(undo);
                 return;
             }
         case 0x598:
             {
                 this.B = e.GetPoint(undo);
                 return;
             }
         case 0x599:
             {
                 this.C = e.GetPoint(undo);
                 return;
             }
         case 0x59a:
             {
                 PointF[] tfArray1 = (PointF[])e.GetValue(undo);
                 this.myPoints = tfArray1;
                 base.ResetPath();
                 base.InvalidBounds = true;
                 this.Changed(0x59a, 0, null, DiagramShape.NullRect, 0, null, DiagramShape.NullRect);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
示例#3
0
        public override void ChangeValue(ChangedEventArgs e, bool undo)
        {
            switch (e.SubHint)
            {
            case 1460:
            {
                this.A = e.GetPoint(undo);
                return;
            }

            case 0x5b5:
            {
                this.B = e.GetPoint(undo);
                return;
            }

            case 0x5b6:
            {
                this.C = e.GetPoint(undo);
                return;
            }

            case 0x5b7:
            {
                this.D = e.GetPoint(undo);
                return;
            }

            case 0x5b8:
            {
                this.SetPoints((PointF[])e.GetValue(undo));
                return;
            }

            case 0x5b9:
            {
                this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo);
                return;
            }
            }
            base.ChangeValue(e, undo);
        }
示例#4
0
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 1460:
             {
                 this.A = e.GetPoint(undo);
                 return;
             }
         case 0x5b5:
             {
                 this.B = e.GetPoint(undo);
                 return;
             }
         case 0x5b6:
             {
                 this.C = e.GetPoint(undo);
                 return;
             }
         case 0x5b7:
             {
                 this.D = e.GetPoint(undo);
                 return;
             }
         case 0x5b8:
             {
                 this.SetPoints((PointF[])e.GetValue(undo));
                 return;
             }
         case 0x5b9:
             {
                 this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }