Extender control (for ToolStripButton only) providing automation around data binding to CSLA .NET business objects. More...
Public Member Functions | |
CslaActionExtenderToolStrip (IContainer container) | |
Creates an instance of the type. More... | |
CslaFormAction | GetActionType (ToolStripButton ctl) |
Gets the action type. More... | |
void | SetActionType (ToolStripButton ctl, CslaFormAction value) |
Sets the action type. More... | |
PostSaveActionType | GetPostSaveAction (ToolStripButton ctl) |
Gets the post save action. More... | |
void | SetPostSaveAction (ToolStripButton ctl, PostSaveActionType value) |
Sets the post save action. More... | |
bool | GetRebindAfterSave (ToolStripButton ctl) |
Gets the rebind after save value. More... | |
void | SetRebindAfterSave (ToolStripButton ctl, bool value) |
Sets the rebind after save value. More... | |
bool | GetDisableWhenClean (ToolStripButton ctl) |
Gets the disable when clean value. More... | |
void | SetDisableWhenClean (ToolStripButton ctl, bool value) |
Sets the disable when clean value. More... | |
bool | GetDisableWhenUseless (ToolStripButton ctl) |
Gets the disable when useless value. More... | |
void | SetDisableWhenUseless (ToolStripButton ctl, bool value) |
Sets the disable when useless value. More... | |
string | GetCommandName (ToolStripButton ctl) |
Gets the command name value. More... | |
void | SetCommandName (ToolStripButton ctl, string value) |
Sets the command name value. More... | |
void | ResetActionBehaviors (ISavable objectToBind) |
Resets all action behaviors. More... | |
Protected Member Functions | |
virtual void | OnClicking (CslaActionCancelEventArgs e) |
Raises the Clicking event. More... | |
virtual void | OnClicked (CslaActionEventArgs e) |
Raises the Clicked event. More... | |
virtual void | OnErrorEncountered (ErrorEncounteredEventArgs e) |
Raises the ErrorEncountered event. More... | |
virtual void | OnSetForNew (CslaActionEventArgs e) |
Raises the SetForNew event. More... | |
virtual void | OnBusinessObjectInvalid (CslaActionEventArgs e) |
Raises the BusinessObjectInvalid event. More... | |
virtual void | OnHasBrokenRules (HasBrokenRulesEventArgs e) |
Raises the HasBrokenRules event. More... | |
virtual void | OnObjectSaving (CslaActionCancelEventArgs e) |
Raises the ObjectSaving event. More... | |
virtual void | OnObjectSaved (CslaActionEventArgs e) |
Raises the ObjectSaved event. More... | |
void | OnClick (object sender, EventArgs e) |
Method invoked when the target control is clicked. More... | |
Properties | |
object | DataSource [getset] |
Gets or sets a reference to the data source object. More... | |
bool | AutoShowBrokenRules [getset] |
Gets or sets a value indicating whether to automatically show broken rules. More... | |
bool | WarnIfCloseOnDirty [getset] |
Gets or sets a value indicating whether to warn the user on close when the object is dirty. More... | |
string | DirtyWarningMessage [getset] |
Gets or sets the message shown to the user in a close on dirty warning. More... | |
bool | WarnOnCancel [getset] |
Gets or sets a value indicating whether to warn the user on cancel. More... | |
string | WarnOnCancelMessage [getset] |
Gets or sets the message shown to the user in a warn on cancel. More... | |
string | ObjectIsValidMessage [getset] |
Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid. More... | |
Events | |
EventHandler< CslaActionCancelEventArgs > | Clicking |
Event indicating the user is clicking on the ToolStripButton. More... | |
EventHandler< CslaActionEventArgs > | Clicked |
Event indicating the user clicked on the ToolStripButton. More... | |
EventHandler< ErrorEncounteredEventArgs > | ErrorEncountered |
Event indicating an error was encountered. More... | |
EventHandler< CslaActionEventArgs > | SetForNew |
Event indicating the object is set for new. More... | |
EventHandler< CslaActionEventArgs > | BusinessObjectInvalid |
Event indicating the business object is in an invalid state. More... | |
EventHandler< HasBrokenRulesEventArgs > | HasBrokenRules |
Event indicating the business object has broken rules. More... | |
EventHandler< CslaActionCancelEventArgs > | ObjectSaving |
Event indicating that the object is saving. More... | |
EventHandler< CslaActionEventArgs > | ObjectSaved |
Event indicating that the object has been saved. More... | |
Extender control (for ToolStripButton only) providing automation around data binding to CSLA .NET business objects.
Definition at line 29 of file CslaActionExtenderToolStrip.cs.
Csla.Windows.CslaActionExtenderToolStrip.CslaActionExtenderToolStrip | ( | IContainer | container | ) |
Creates an instance of the type.
container | Container for the component. |
Definition at line 37 of file CslaActionExtenderToolStrip.cs.
CslaFormAction Csla.Windows.CslaActionExtenderToolStrip.GetActionType | ( | ToolStripButton | ctl | ) |
Gets the action type.
ctl | Reference to ToolStripButton. |
Definition at line 197 of file CslaActionExtenderToolStrip.cs.
string Csla.Windows.CslaActionExtenderToolStrip.GetCommandName | ( | ToolStripButton | ctl | ) |
Gets the command name value.
ctl | Reference to ToolStripButton. |
Definition at line 407 of file CslaActionExtenderToolStrip.cs.
bool Csla.Windows.CslaActionExtenderToolStrip.GetDisableWhenClean | ( | ToolStripButton | ctl | ) |
Gets the disable when clean value.
ctl | Reference to ToolStripButton. |
Definition at line 323 of file CslaActionExtenderToolStrip.cs.
bool Csla.Windows.CslaActionExtenderToolStrip.GetDisableWhenUseless | ( | ToolStripButton | ctl | ) |
Gets the disable when useless value.
ctl | Reference to ToolStripButton. |
Definition at line 366 of file CslaActionExtenderToolStrip.cs.
PostSaveActionType Csla.Windows.CslaActionExtenderToolStrip.GetPostSaveAction | ( | ToolStripButton | ctl | ) |
Gets the post save action.
ctl | Reference to ToolStripButton. |
Definition at line 239 of file CslaActionExtenderToolStrip.cs.
bool Csla.Windows.CslaActionExtenderToolStrip.GetRebindAfterSave | ( | ToolStripButton | ctl | ) |
Gets the rebind after save value.
ctl | Reference to ToolStripButton. |
Definition at line 280 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the BusinessObjectInvalid event.
e | Event arguments. |
Definition at line 546 of file CslaActionExtenderToolStrip.cs.
|
protected |
Method invoked when the target control is clicked.
sender | Object originating action. |
e | Arguments. |
Definition at line 657 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the Clicked event.
e | Event arguments. |
Definition at line 516 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the Clicking event.
e | Event arguments. |
Definition at line 506 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the ErrorEncountered event.
e | Event arguments. |
Definition at line 526 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the HasBrokenRules event.
e | Event arguments. |
Definition at line 556 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the ObjectSaved event.
e | Event arguments. |
Definition at line 576 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the ObjectSaving event.
e | Event arguments. |
Definition at line 566 of file CslaActionExtenderToolStrip.cs.
|
protectedvirtual |
Raises the SetForNew event.
e | Event arguments. |
Definition at line 536 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.ResetActionBehaviors | ( | ISavable | objectToBind | ) |
Resets all action behaviors.
objectToBind | Target object. |
Definition at line 590 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.SetActionType | ( | ToolStripButton | ctl, |
CslaFormAction | value | ||
) |
Sets the action type.
ctl | Reference to ToolStripButton. |
value | Value for property. |
Definition at line 214 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.SetCommandName | ( | ToolStripButton | ctl, |
string | value | ||
) |
Sets the command name value.
ctl | Reference to ToolStripButton. |
value | Value for property. |
Definition at line 424 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.SetDisableWhenClean | ( | ToolStripButton | ctl, |
bool | value | ||
) |
Sets the disable when clean value.
ctl | Reference to ToolStripButton. |
value | Value for property. |
Definition at line 342 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.SetDisableWhenUseless | ( | ToolStripButton | ctl, |
bool | value | ||
) |
Sets the disable when useless value.
ctl | Reference to ToolStripButton. |
value | Value for property. |
Definition at line 383 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.SetPostSaveAction | ( | ToolStripButton | ctl, |
PostSaveActionType | value | ||
) |
Sets the post save action.
ctl | Reference to ToolStripButton. |
value | Value for property. |
Definition at line 256 of file CslaActionExtenderToolStrip.cs.
void Csla.Windows.CslaActionExtenderToolStrip.SetRebindAfterSave | ( | ToolStripButton | ctl, |
bool | value | ||
) |
Sets the rebind after save value.
ctl | Reference to ToolStripButton. |
value | Value for property. |
Definition at line 297 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets a value indicating whether to automatically show broken rules.
Definition at line 103 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets a reference to the data source object.
Definition at line 80 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets the message shown to the user in a close on dirty warning.
Definition at line 132 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid.
Definition at line 176 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets a value indicating whether to warn the user on close when the object is dirty.
Definition at line 117 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets a value indicating whether to warn the user on cancel.
Definition at line 146 of file CslaActionExtenderToolStrip.cs.
|
getset |
Gets or sets the message shown to the user in a warn on cancel.
Definition at line 161 of file CslaActionExtenderToolStrip.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.BusinessObjectInvalid |
Event indicating the business object is in an invalid state.
Definition at line 475 of file CslaActionExtenderToolStrip.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.Clicked |
Event indicating the user clicked on the ToolStripButton.
Definition at line 454 of file CslaActionExtenderToolStrip.cs.
EventHandler<CslaActionCancelEventArgs> Csla.Windows.CslaActionExtenderToolStrip.Clicking |
Event indicating the user is clicking on the ToolStripButton.
Definition at line 447 of file CslaActionExtenderToolStrip.cs.
EventHandler<ErrorEncounteredEventArgs> Csla.Windows.CslaActionExtenderToolStrip.ErrorEncountered |
Event indicating an error was encountered.
Definition at line 461 of file CslaActionExtenderToolStrip.cs.
EventHandler<HasBrokenRulesEventArgs> Csla.Windows.CslaActionExtenderToolStrip.HasBrokenRules |
Event indicating the business object has broken rules.
Definition at line 482 of file CslaActionExtenderToolStrip.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.ObjectSaved |
Event indicating that the object has been saved.
Definition at line 496 of file CslaActionExtenderToolStrip.cs.
EventHandler<CslaActionCancelEventArgs> Csla.Windows.CslaActionExtenderToolStrip.ObjectSaving |
Event indicating that the object is saving.
Definition at line 489 of file CslaActionExtenderToolStrip.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.SetForNew |
Event indicating the object is set for new.
Definition at line 468 of file CslaActionExtenderToolStrip.cs.