![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Extender control providing automation around data binding to CSLA .NET business objects. More...
Public Member Functions | |
| CslaActionExtender (IContainer container) | |
| Creates an instance of the type. | |
| CslaFormAction | GetActionType (Control ctl) |
| Gets the action type. | |
| void | SetActionType (Control ctl, CslaFormAction value) |
| Sets the action type. | |
| PostSaveActionType | GetPostSaveAction (Control ctl) |
| Gets the post save action. | |
| void | SetPostSaveAction (Control ctl, PostSaveActionType value) |
| Sets the post save action. | |
| bool | GetRebindAfterSave (Control ctl) |
| Gets the rebind after save value. | |
| void | SetRebindAfterSave (Control ctl, bool value) |
| Sets the rebind after save value. | |
| bool | GetDisableWhenUseless (Control ctl) |
| Gets the disable when useless value. | |
| void | SetDisableWhenUseless (Control ctl, bool value) |
| Sets the disable when useless value. | |
| string | GetCommandName (Control ctl) |
| Gets the command name value. | |
| void | SetCommandName (Control ctl, string value) |
| Sets the command name value. | |
| void | ResetActionBehaviors (ISavable? objectToBind) |
| Resets all action behaviors. | |
Protected Member Functions | |
| virtual void | OnClicking (CslaActionCancelEventArgs e) |
| Raises the Clicking event. | |
| virtual void | OnClicked (CslaActionEventArgs e) |
| Raises the Clicked event. | |
| virtual void | OnErrorEncountered (ErrorEncounteredEventArgs e) |
| Raises the ErrorEncountered event. | |
| virtual void | OnSetForNew (CslaActionEventArgs e) |
| Raises the SetForNew event. | |
| virtual void | OnBusinessObjectInvalid (CslaActionEventArgs e) |
| Raises the BusinessObjectInvalid event. | |
| virtual void | OnHasBrokenRules (HasBrokenRulesEventArgs e) |
| Raises the HasBrokenRules event. | |
| virtual void | OnObjectSaving (CslaActionCancelEventArgs e) |
| Raises the ObjectSaving event. | |
| virtual void | OnObjectSaved (CslaActionEventArgs e) |
| Raises the ObjectSaved event. | |
| void | OnClick (object? sender, EventArgs e) |
| Method invoked when the target control is clicked. | |
Properties | |
| object? | DataSource [get, set] |
| Gets or sets a reference to the data source object. | |
| bool | AutoShowBrokenRules = true [get, set] |
| Gets or sets a value indicating whether to automatically show broken rules. | |
| bool | WarnIfCloseOnDirty = true [get, set] |
| Gets or sets a value indicating whether to warn the user on close when the object is dirty. | |
| string | DirtyWarningMessage = Resources.ActionExtenderDirtyWarningMessagePropertyDefault [get, set] |
| Gets or sets the message shown to the user in a close on dirty warning. | |
| bool | WarnOnCancel = false [get, set] |
| Gets or sets a value indicating whether to warn the user on cancel. | |
| string | WarnOnCancelMessage = Resources.ActionExtenderWarnOnCancelMessagePropertyDefault [get, set] |
| Gets or sets the message shown to the user in a warn on cancel. | |
| string | ObjectIsValidMessage = Resources.ActionExtenderObjectIsValidMessagePropertyDefault [get, set] |
| Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid. | |
Events | |
| EventHandler< CslaActionCancelEventArgs >? | Clicking |
| Event indicating the user is clicking on the Control. | |
| EventHandler< CslaActionEventArgs >? | Clicked |
| Event indicating the user clicked on the Control. | |
| EventHandler< ErrorEncounteredEventArgs >? | ErrorEncountered |
| Event indicating an error was encountered. | |
| EventHandler< CslaActionEventArgs >? | SetForNew |
| Event indicating the object is set for new. | |
| EventHandler< CslaActionEventArgs >? | BusinessObjectInvalid |
| Event indicating the business object is in an invalid state. | |
| EventHandler< HasBrokenRulesEventArgs >? | HasBrokenRules |
| Event indicating the business object has broken rules. | |
| EventHandler< CslaActionCancelEventArgs >? | ObjectSaving |
| Event indicating that the object is saving. | |
| EventHandler< CslaActionEventArgs >? | ObjectSaved |
| Event indicating that the object has been saved. | |
Extender control providing automation around data binding to CSLA .NET business objects.
|
inline |
Creates an instance of the type.
| container | Container for the component. |
| ArgumentNullException | container is null. |
|
inline |
Gets the action type.
| ctl | Reference to Control. |
| ArgumentNullException | ctl is null. |
|
inline |
Gets the command name value.
| ctl | Reference to Control. |
| ArgumentNullException | ctl is null. |
|
inline |
Gets the disable when useless value.
| ctl | Reference to Control. |
| ArgumentNullException | ctl is null. |
|
inline |
Gets the post save action.
| ctl | Reference to Control. |
| ArgumentNullException | ctl is null. |
|
inline |
Gets the rebind after save value.
| ctl | Reference to Control. |
| ArgumentNullException | ctl is null. |
|
inlineprotectedvirtual |
Raises the BusinessObjectInvalid event.
| e | Event arguments. |
|
inlineprotected |
Method invoked when the target control is clicked.
| sender | Object originating action. |
| e | Arguments. |
|
inlineprotectedvirtual |
Raises the Clicked event.
| e | Event arguments. |
|
inlineprotectedvirtual |
Raises the Clicking event.
| e | Event arguments. |
|
inlineprotectedvirtual |
Raises the ErrorEncountered event.
| e | Event arguments. |
|
inlineprotectedvirtual |
Raises the HasBrokenRules event.
| e | Event arguments. |
|
inlineprotectedvirtual |
Raises the ObjectSaved event.
| e | Event arguments. |
|
inlineprotectedvirtual |
Raises the ObjectSaving event.
| e | Event arguments. |
|
inlineprotectedvirtual |
Raises the SetForNew event.
| e | Event arguments. |
|
inline |
Resets all action behaviors.
| objectToBind | Target object. |
|
inline |
Sets the action type.
| ctl | Reference to Control. |
| value | Value for property. |
| ArgumentNullException | ctl is null. |
|
inline |
Sets the command name value.
| ctl | Reference to Control. |
| value | Value for property. |
| ArgumentNullException | ctl or value is null. |
|
inline |
Sets the disable when useless value.
| ctl | Reference to Control. |
| value | Value for property. |
| ArgumentNullException | ctl is null. |
|
inline |
Sets the post save action.
| ctl | Reference to Control. |
| value | Value for property. |
| ArgumentNullException | ctl is null. |
|
inline |
Sets the rebind after save value.
| ctl | Reference to Control. |
| value | Value for property. |
| ArgumentNullException | ctl is null. |
|
getset |
Gets or sets a value indicating whether to automatically show broken rules.
|
getset |
Gets or sets a reference to the data source object.
|
getset |
Gets or sets the message shown to the user in a close on dirty warning.
|
getset |
Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid.
|
getset |
Gets or sets a value indicating whether to warn the user on close when the object is dirty.
|
getset |
Gets or sets a value indicating whether to warn the user on cancel.
|
getset |
Gets or sets the message shown to the user in a warn on cancel.
| EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtender.BusinessObjectInvalid |
Event indicating the business object is in an invalid state.
| EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtender.Clicked |
Event indicating the user clicked on the Control.
| EventHandler<CslaActionCancelEventArgs>? Csla.Windows.CslaActionExtender.Clicking |
Event indicating the user is clicking on the Control.
| EventHandler<ErrorEncounteredEventArgs>? Csla.Windows.CslaActionExtender.ErrorEncountered |
Event indicating an error was encountered.
| EventHandler<HasBrokenRulesEventArgs>? Csla.Windows.CslaActionExtender.HasBrokenRules |
Event indicating the business object has broken rules.
| EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtender.ObjectSaved |
Event indicating that the object has been saved.
| EventHandler<CslaActionCancelEventArgs>? Csla.Windows.CslaActionExtender.ObjectSaving |
Event indicating that the object is saving.
| EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtender.SetForNew |
Event indicating the object is set for new.