Coffeehouse Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Tracking object state.

Back to Forum: Coffeehouse
  • User profile image
    LoadTitan

    Hi,
     
    I have been writing windows forms apps for some time and I very much like the CSLA framework for many reasons. Just one of the reasons is its n-level undo feature. Briefly, this feature will allow an object to track it's state when being edited so that if the edit was cancelled for some reason (the Cancel button on the dialog was pressed!!) then the changes are undone and the object is placed back in the state it was before editing began.
     
    I am curious, what do other people use for tracking state on business object?
     
    Thanks
     
    Graham

  • User profile image
    Dr Herbie

    I have used the command pattern before to give multi-level undo\redo.  Depending on your application, this might be overkill. Currently I don't use this becuase I mostly work with ADO.NET datasets which have the RejectChanges method for cancellation.

    Herbie

    EDIT:  just happened upon http://undo.codeplex.com/ which appears to be a framework for the command pattern (I have not looked in depth yet).

  • User profile image
    LoadTitan

    Dr Herbie said:

    I have used the command pattern before to give multi-level undo\redo.  Depending on your application, this might be overkill. Currently I don't use this becuase I mostly work with ADO.NET datasets which have the RejectChanges method for cancellation.

    Herbie

    EDIT:  just happened upon http://undo.codeplex.com/ which appears to be a framework for the command pattern (I have not looked in depth yet).

    Cool. Thanks Dr!!

  • User profile image
    JohnAskew

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.