Example #1
0
        // handle undo and redo for the additional document state
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.Hint)
            {
            case ChangedPath:
                this.Path = (String)e.GetValue(undo);
                break;

            default:
                base.ChangeValue(e, undo);
                break;
            }
        }
Example #2
0
        public override void ChangeValue(GoChangedEventArgs e, bool undo)
        {
            switch (e.Hint)
            {
            case ChangedLocation:
            {
                this.Location = (String)e.GetValue(undo);
                break;
            }

            default:
                base.ChangeValue(e, undo);
                return;
            }
        }
Example #3
0
 public override void ChangeValue(GoChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case ChangedOffset:
             this.Offset = e.GetSize(undo);
             return;
         case ChangedSegment:
             this.Segment = e.GetInt(undo);
             return;
         case ChangedSegmentPercentage:
             this.SegmentPercentage = e.GetFloat(undo);
             return;
         case ChangedConnectionColor:
             this.ConnectionColor = (Color)e.GetValue(undo);
             return;
         default:
             base.ChangeValue(e, undo);
             return;
     }
 }