CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Windows.CslaActionExtenderToolStrip Class Reference

Extender control (for ToolStripButton only) providing automation around data binding to CSLA .NET business objects. More...

Inheritance diagram for Csla.Windows.CslaActionExtenderToolStrip:

Public Member Functions

 CslaActionExtenderToolStrip (IContainer container)
 Creates an instance of the type.
CslaFormAction GetActionType (ToolStripButton ctl)
 Gets the action type.
void SetActionType (ToolStripButton ctl, CslaFormAction value)
 Sets the action type.
PostSaveActionType GetPostSaveAction (ToolStripButton ctl)
 Gets the post save action.
void SetPostSaveAction (ToolStripButton ctl, PostSaveActionType value)
 Sets the post save action.
bool GetRebindAfterSave (ToolStripButton ctl)
 Gets the rebind after save value.
void SetRebindAfterSave (ToolStripButton ctl, bool value)
 Sets the rebind after save value.
bool GetDisableWhenUseless (ToolStripButton ctl)
 Gets the disable when useless value.
void SetDisableWhenUseless (ToolStripButton ctl, bool value)
 Sets the disable when useless value.
string GetCommandName (ToolStripButton ctl)
 Gets the command name value.
void SetCommandName (ToolStripButton 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 ToolStripButton.
EventHandler< CslaActionEventArgs >? Clicked
 Event indicating the user clicked on the ToolStripButton.
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.

Detailed Description

Extender control (for ToolStripButton only) providing automation around data binding to CSLA .NET business objects.

Constructor & Destructor Documentation

◆ CslaActionExtenderToolStrip()

Csla.Windows.CslaActionExtenderToolStrip.CslaActionExtenderToolStrip ( IContainer container)
inline

Creates an instance of the type.

Parameters
containerContainer for the component.
Exceptions
ArgumentNullExceptioncontainer is null.

Member Function Documentation

◆ GetActionType()

CslaFormAction Csla.Windows.CslaActionExtenderToolStrip.GetActionType ( ToolStripButton ctl)
inline

Gets the action type.

Parameters
ctlReference to ToolStripButton.
Exceptions
ArgumentNullExceptionctl is null.

◆ GetCommandName()

string Csla.Windows.CslaActionExtenderToolStrip.GetCommandName ( ToolStripButton ctl)
inline

Gets the command name value.

Parameters
ctlReference to ToolStripButton.
Exceptions
ArgumentNullExceptionctl is null.

◆ GetDisableWhenUseless()

bool Csla.Windows.CslaActionExtenderToolStrip.GetDisableWhenUseless ( ToolStripButton ctl)
inline

Gets the disable when useless value.

Parameters
ctlReference to ToolStripButton.
Exceptions
ArgumentNullExceptionctl is null.

◆ GetPostSaveAction()

PostSaveActionType Csla.Windows.CslaActionExtenderToolStrip.GetPostSaveAction ( ToolStripButton ctl)
inline

Gets the post save action.

Parameters
ctlReference to ToolStripButton.
Exceptions
ArgumentNullExceptionctl is null.

◆ GetRebindAfterSave()

bool Csla.Windows.CslaActionExtenderToolStrip.GetRebindAfterSave ( ToolStripButton ctl)
inline

Gets the rebind after save value.

Parameters
ctlReference to ToolStripButton.
Exceptions
ArgumentNullExceptionctl is null.

◆ OnBusinessObjectInvalid()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnBusinessObjectInvalid ( CslaActionEventArgs e)
inlineprotectedvirtual

Raises the BusinessObjectInvalid event.

Parameters
eEvent arguments.

◆ OnClick()

void Csla.Windows.CslaActionExtenderToolStrip.OnClick ( object? sender,
EventArgs e )
inlineprotected

Method invoked when the target control is clicked.

Parameters
senderObject originating action.
eArguments.

◆ OnClicked()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnClicked ( CslaActionEventArgs e)
inlineprotectedvirtual

Raises the Clicked event.

Parameters
eEvent arguments.

◆ OnClicking()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnClicking ( CslaActionCancelEventArgs e)
inlineprotectedvirtual

Raises the Clicking event.

Parameters
eEvent arguments.

◆ OnErrorEncountered()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnErrorEncountered ( ErrorEncounteredEventArgs e)
inlineprotectedvirtual

Raises the ErrorEncountered event.

Parameters
eEvent arguments.

◆ OnHasBrokenRules()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnHasBrokenRules ( HasBrokenRulesEventArgs e)
inlineprotectedvirtual

Raises the HasBrokenRules event.

Parameters
eEvent arguments.

◆ OnObjectSaved()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnObjectSaved ( CslaActionEventArgs e)
inlineprotectedvirtual

Raises the ObjectSaved event.

Parameters
eEvent arguments.

◆ OnObjectSaving()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnObjectSaving ( CslaActionCancelEventArgs e)
inlineprotectedvirtual

Raises the ObjectSaving event.

Parameters
eEvent arguments.

◆ OnSetForNew()

virtual void Csla.Windows.CslaActionExtenderToolStrip.OnSetForNew ( CslaActionEventArgs e)
inlineprotectedvirtual

Raises the SetForNew event.

Parameters
eEvent arguments.

◆ ResetActionBehaviors()

void Csla.Windows.CslaActionExtenderToolStrip.ResetActionBehaviors ( ISavable? objectToBind)
inline

Resets all action behaviors.

Parameters
objectToBindTarget object.

◆ SetActionType()

void Csla.Windows.CslaActionExtenderToolStrip.SetActionType ( ToolStripButton ctl,
CslaFormAction value )
inline

Sets the action type.

Parameters
ctlReference to ToolStripButton.
valueValue for property.
Exceptions
ArgumentNullExceptionctl is null.

◆ SetCommandName()

void Csla.Windows.CslaActionExtenderToolStrip.SetCommandName ( ToolStripButton ctl,
string value )
inline

Sets the command name value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.
Exceptions
ArgumentNullExceptionctl or value is null.

◆ SetDisableWhenUseless()

void Csla.Windows.CslaActionExtenderToolStrip.SetDisableWhenUseless ( ToolStripButton ctl,
bool value )
inline

Sets the disable when useless value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.
Exceptions
ArgumentNullExceptionctl is null.

◆ SetPostSaveAction()

void Csla.Windows.CslaActionExtenderToolStrip.SetPostSaveAction ( ToolStripButton ctl,
PostSaveActionType value )
inline

Sets the post save action.

Parameters
ctlReference to ToolStripButton.
valueValue for property.
Exceptions
ArgumentNullExceptionctl is null.

◆ SetRebindAfterSave()

void Csla.Windows.CslaActionExtenderToolStrip.SetRebindAfterSave ( ToolStripButton ctl,
bool value )
inline

Sets the rebind after save value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.
Exceptions
ArgumentNullExceptionctl is null.

Property Documentation

◆ AutoShowBrokenRules

bool Csla.Windows.CslaActionExtenderToolStrip.AutoShowBrokenRules = true
getset

Gets or sets a value indicating whether to automatically show broken rules.

◆ DataSource

object? Csla.Windows.CslaActionExtenderToolStrip.DataSource
getset

Gets or sets a reference to the data source object.

◆ DirtyWarningMessage

string Csla.Windows.CslaActionExtenderToolStrip.DirtyWarningMessage = Resources.ActionExtenderDirtyWarningMessagePropertyDefault
getset

Gets or sets the message shown to the user in a close on dirty warning.

◆ ObjectIsValidMessage

string Csla.Windows.CslaActionExtenderToolStrip.ObjectIsValidMessage = Resources.ActionExtenderObjectIsValidMessagePropertyDefault
getset

Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid.

◆ WarnIfCloseOnDirty

bool Csla.Windows.CslaActionExtenderToolStrip.WarnIfCloseOnDirty = true
getset

Gets or sets a value indicating whether to warn the user on close when the object is dirty.

◆ WarnOnCancel

bool Csla.Windows.CslaActionExtenderToolStrip.WarnOnCancel = false
getset

Gets or sets a value indicating whether to warn the user on cancel.

◆ WarnOnCancelMessage

string Csla.Windows.CslaActionExtenderToolStrip.WarnOnCancelMessage = Resources.ActionExtenderWarnOnCancelMessagePropertyDefault
getset

Gets or sets the message shown to the user in a warn on cancel.

Event Documentation

◆ BusinessObjectInvalid

EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.BusinessObjectInvalid

Event indicating the business object is in an invalid state.

◆ Clicked

EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.Clicked

Event indicating the user clicked on the ToolStripButton.

◆ Clicking

EventHandler<CslaActionCancelEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.Clicking

Event indicating the user is clicking on the ToolStripButton.

◆ ErrorEncountered

EventHandler<ErrorEncounteredEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.ErrorEncountered

Event indicating an error was encountered.

◆ HasBrokenRules

EventHandler<HasBrokenRulesEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.HasBrokenRules

Event indicating the business object has broken rules.

◆ ObjectSaved

EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.ObjectSaved

Event indicating that the object has been saved.

◆ ObjectSaving

EventHandler<CslaActionCancelEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.ObjectSaving

Event indicating that the object is saving.

◆ SetForNew

EventHandler<CslaActionEventArgs>? Csla.Windows.CslaActionExtenderToolStrip.SetForNew

Event indicating the object is set for new.


The documentation for this class was generated from the following file: