Ejemplo n.º 1
0
 public override void CopyOldValueForUndo(ChangedEventArgs e)
 {
     if (e.SubHint == 0x5b8)
     {
         if (!e.IsBeforeChanging)
         {
             ChangedEventArgs args1 = e.FindBeforeChangingEdit();
             if (args1 != null)
             {
                 e.OldValue = args1.NewValue;
             }
         }
     }
     else
     {
         base.CopyOldValueForUndo(e);
     }
 }
Ejemplo n.º 2
0
 public override void CopyOldValueForUndo(ChangedEventArgs e)
 {
     if (e.SubHint == 0x4b4)
     {
         if (!e.IsBeforeChanging)
         {
             ChangedEventArgs args1 = e.FindBeforeChangingEdit();
             if (args1 != null)
             {
                 e.OldValue = args1.NewValue;
             }
         }
     }
     else
     {
         base.CopyOldValueForUndo(e);
     }
 }