@@ -317,54 +317,7 @@ protected override void OnActivated()
317317
318318 #endregion Constructors & Recipients
319319
320- #region IEditableObject
321-
322- public void BeginEdit ( )
323- {
324- if ( ! _inTxn )
325- {
326- _backup = EditingIPConfig . DeepClone ( ) ;
327- _inTxn = true ;
328- }
329- }
330-
331- public void CancelEdit ( )
332- {
333- if ( _inTxn )
334- {
335- _backup . DeepCloneTo ( EditingIPConfig ) ;
336- _inTxn = false ;
337- }
338- }
339-
340- public void EndEdit ( )
341- {
342- if ( _inTxn )
343- {
344- _backup = EditableIPConfigModel . Empty ;
345- _inTxn = false ;
346- }
347- }
348-
349- #endregion IEditableObject
350-
351- #region IRevertibleChangeTracking
352-
353- public bool IsChanged => ! EditingIPConfig . PropertyEquals ( _backup ) ;
354-
355- public void AcceptChanges ( )
356- {
357- EndEdit ( ) ;
358- }
359-
360- public void RejectChanges ( )
361- {
362- CancelEdit ( ) ;
363- }
364-
365- #endregion IRevertibleChangeTracking
366-
367- #region RelayCommands
320+ #region Relay Commands
368321
369322 [ RelayCommand ]
370323 private static async Task CopyDnsAsync ( string dns )
@@ -674,7 +627,7 @@ private void Validate()
674627 }
675628 }
676629
677- #endregion RelayCommands
630+ #endregion Relay Commands
678631
679632 #region Event Handlers
680633
@@ -871,4 +824,51 @@ private void GetAutoCompleteName()
871824 }
872825
873826 #endregion Private Methods
827+
828+ #region IEditableObject
829+
830+ public void BeginEdit ( )
831+ {
832+ if ( ! _inTxn )
833+ {
834+ _backup = EditingIPConfig . DeepClone ( ) ;
835+ _inTxn = true ;
836+ }
837+ }
838+
839+ public void CancelEdit ( )
840+ {
841+ if ( _inTxn )
842+ {
843+ _backup . DeepCloneTo ( EditingIPConfig ) ;
844+ _inTxn = false ;
845+ }
846+ }
847+
848+ public void EndEdit ( )
849+ {
850+ if ( _inTxn )
851+ {
852+ _backup = EditableIPConfigModel . Empty ;
853+ _inTxn = false ;
854+ }
855+ }
856+
857+ #endregion IEditableObject
858+
859+ #region IRevertibleChangeTracking
860+
861+ public bool IsChanged => ! EditingIPConfig . PropertyEquals ( _backup ) ;
862+
863+ public void AcceptChanges ( )
864+ {
865+ EndEdit ( ) ;
866+ }
867+
868+ public void RejectChanges ( )
869+ {
870+ CancelEdit ( ) ;
871+ }
872+
873+ #endregion IRevertibleChangeTracking
874874}
0 commit comments