See also:
NTier Windows Forms Framework Home
NTier Framework API reference

This action performs a 'commit' action. A commit action is defined by use cases such as the following:

Save action on commit
1. FormShowAction is executed on form A - the CommitActions property is set to an instance of FormSaveAction
(note that the save action is the default, so it doesn't have to be set explicitly)
2. Form A is shown
3. Form A handles FormCommitAction.CommitActionsChanged event to update it's appearance,
in this case the button should be labelled 'save'.
4. Form A is shown, 'commit' button is clicked.
5. The FormCommitAction action is executed, which runs the FormSaveAction action.

Delete action on commit
1. FormShowAction is executed on form B - the CommitActions property is set to an instance of FormDeleteAndSaveAction
2. Form B is shown
3. form B handles FormCommitAction.CommitActionsChanged event to update it's appearance,
in this case the button should be labelled 'delete'.
4. The FormCommitAction action is executed ('delete' button clicked), which runs the FormDeleteAndSaveAction action.

Namespace: NTier.Actions
Assembly: NTier.Actions (in NTier.Actions.dll) Version: 1.0.0.0

Syntax

C#
public class FormCommitAction : BoundControlActionBase
Visual Basic
Public Class FormCommitAction
	Inherits BoundControlActionBase
Visual C++
public ref class FormCommitAction : public BoundControlActionBase

Inheritance Hierarchy

System..::..Object
  NAction
    NTier.Actions..::..BoundControlActionBase
      NTier.Actions..::..FormCommitAction

See Also