WinModificationsController Class
Inherits from the ModificationsController to implement Windows Forms specific behavior.
Namespace: DevExpress.ExpressApp.Win.SystemModule
Assembly: DevExpress.ExpressApp.Win.v24.1.dll
NuGet Packages: DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design
NuGet Package: DevExpress.ExpressApp.Win
Declaration
Remarks
The WinModificationsController adds the following functionality to the base ModificationsController:
Save Action
When executing the Save Action, the Controller commits the changes .
The Action is deactivated in List Views if the ModificationsController.ModificationsHandlingMode property is set to ModificationsHandlingMode.AutoCommit.
The Action is disabled when the current object is not modified.
SaveAndClose Action
When executing the SaveAndClose Action, the Controller commits the changes made to the current object and closes the current View.
The Action is deactivated in List Views if the ModificationsController.ModificationsHandlingMode property is set to ModificationsHandlingMode.AutoCommit.
Cancel Action
Rolls back the changes made to the current object (see BaseObjectSpace.Rollback) and retrieves the object from the database again.
The Action is deactivated in List Views if the ModificationsController.ModificationsHandlingMode property is set to ModificationsHandlingMode.AutoCommit.
The Action is set to disabled, when the data is not modified.
UpdateActionState method
Overrides this method to check whether to update the Save, Cancel and SaveAndClose Actions’ enabled state, depending on whether the current object has been modified or the AutoCommitListView property value has changed. The SaveAndNew Action is activated for Detail Views only.