CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Go to the documentation of this file.
2// <copyright file="IUndoableObject.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Defines the methods required to participate</summary>
8namespace Csla.Core
18 public interface IUndoableObject
19 {
23 int EditLevel { get; }
34 void CopyState(int parentEditLevel, bool parentBindingEdit);
51 void UndoChanges(int parentEditLevel, bool parentBindingEdit);
67 void AcceptChanges(int parentEditLevel, bool parentBindingEdit);
68 }
Defines the methods required to participate in n-level undo within the CSLA .NET framework.
void CopyState(int parentEditLevel, bool parentBindingEdit)
Copies the state of the object and places the copy onto the state stack.
void UndoChanges(int parentEditLevel, bool parentBindingEdit)
Restores the object's state to the most recently copied values from the state stack.
int EditLevel
Gets the current edit level of the object.
void AcceptChanges(int parentEditLevel, bool parentBindingEdit)
Accepts any changes made to the object since the last state copy was made.