CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. 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< CslaActionCancelEventArgsClicking
 Event indicating the user is clicking on the ToolStripButton. More...
 
EventHandler< CslaActionEventArgsClicked
 Event indicating the user clicked on the ToolStripButton. More...
 
EventHandler< ErrorEncounteredEventArgsErrorEncountered
 Event indicating an error was encountered. More...
 
EventHandler< CslaActionEventArgsSetForNew
 Event indicating the object is set for new. More...
 
EventHandler< CslaActionEventArgsBusinessObjectInvalid
 Event indicating the business object is in an invalid state. More...
 
EventHandler< HasBrokenRulesEventArgsHasBrokenRules
 Event indicating the business object has broken rules. More...
 
EventHandler< CslaActionCancelEventArgsObjectSaving
 Event indicating that the object is saving. More...
 
EventHandler< CslaActionEventArgsObjectSaved
 Event indicating that the object has been saved. More...
 

Detailed Description

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

Definition at line 29 of file CslaActionExtenderToolStrip.cs.

Constructor & Destructor Documentation

◆ CslaActionExtenderToolStrip()

Csla.Windows.CslaActionExtenderToolStrip.CslaActionExtenderToolStrip ( IContainer  container)

Creates an instance of the type.

Parameters
containerContainer for the component.

Definition at line 37 of file CslaActionExtenderToolStrip.cs.

Member Function Documentation

◆ GetActionType()

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

Gets the action type.

Parameters
ctlReference to ToolStripButton.
Returns

Definition at line 197 of file CslaActionExtenderToolStrip.cs.

◆ GetCommandName()

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

Gets the command name value.

Parameters
ctlReference to ToolStripButton.

Definition at line 407 of file CslaActionExtenderToolStrip.cs.

◆ GetDisableWhenClean()

bool Csla.Windows.CslaActionExtenderToolStrip.GetDisableWhenClean ( ToolStripButton  ctl)

Gets the disable when clean value.

Parameters
ctlReference to ToolStripButton.

Definition at line 323 of file CslaActionExtenderToolStrip.cs.

◆ GetDisableWhenUseless()

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

Gets the disable when useless value.

Parameters
ctlReference to ToolStripButton.

Definition at line 366 of file CslaActionExtenderToolStrip.cs.

◆ GetPostSaveAction()

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

Gets the post save action.

Parameters
ctlReference to ToolStripButton.
Returns

Definition at line 239 of file CslaActionExtenderToolStrip.cs.

◆ GetRebindAfterSave()

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

Gets the rebind after save value.

Parameters
ctlReference to ToolStripButton.

Definition at line 280 of file CslaActionExtenderToolStrip.cs.

◆ OnBusinessObjectInvalid()

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

Raises the BusinessObjectInvalid event.

Parameters
eEvent arguments.

Definition at line 546 of file CslaActionExtenderToolStrip.cs.

◆ OnClick()

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

Method invoked when the target control is clicked.

Parameters
senderObject originating action.
eArguments.

Definition at line 657 of file CslaActionExtenderToolStrip.cs.

◆ OnClicked()

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

Raises the Clicked event.

Parameters
eEvent arguments.

Definition at line 516 of file CslaActionExtenderToolStrip.cs.

◆ OnClicking()

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

Raises the Clicking event.

Parameters
eEvent arguments.

Definition at line 506 of file CslaActionExtenderToolStrip.cs.

◆ OnErrorEncountered()

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

Raises the ErrorEncountered event.

Parameters
eEvent arguments.

Definition at line 526 of file CslaActionExtenderToolStrip.cs.

◆ OnHasBrokenRules()

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

Raises the HasBrokenRules event.

Parameters
eEvent arguments.

Definition at line 556 of file CslaActionExtenderToolStrip.cs.

◆ OnObjectSaved()

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

Raises the ObjectSaved event.

Parameters
eEvent arguments.

Definition at line 576 of file CslaActionExtenderToolStrip.cs.

◆ OnObjectSaving()

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

Raises the ObjectSaving event.

Parameters
eEvent arguments.

Definition at line 566 of file CslaActionExtenderToolStrip.cs.

◆ OnSetForNew()

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

Raises the SetForNew event.

Parameters
eEvent arguments.

Definition at line 536 of file CslaActionExtenderToolStrip.cs.

◆ ResetActionBehaviors()

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

Resets all action behaviors.

Parameters
objectToBindTarget object.

Definition at line 590 of file CslaActionExtenderToolStrip.cs.

◆ SetActionType()

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

Sets the action type.

Parameters
ctlReference to ToolStripButton.
valueValue for property.

Definition at line 214 of file CslaActionExtenderToolStrip.cs.

◆ SetCommandName()

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

Sets the command name value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.

Definition at line 424 of file CslaActionExtenderToolStrip.cs.

◆ SetDisableWhenClean()

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

Sets the disable when clean value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.

Definition at line 342 of file CslaActionExtenderToolStrip.cs.

◆ SetDisableWhenUseless()

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

Sets the disable when useless value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.

Definition at line 383 of file CslaActionExtenderToolStrip.cs.

◆ SetPostSaveAction()

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

Sets the post save action.

Parameters
ctlReference to ToolStripButton.
valueValue for property.

Definition at line 256 of file CslaActionExtenderToolStrip.cs.

◆ SetRebindAfterSave()

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

Sets the rebind after save value.

Parameters
ctlReference to ToolStripButton.
valueValue for property.

Definition at line 297 of file CslaActionExtenderToolStrip.cs.

Property Documentation

◆ AutoShowBrokenRules

bool Csla.Windows.CslaActionExtenderToolStrip.AutoShowBrokenRules
getset

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

Definition at line 103 of file CslaActionExtenderToolStrip.cs.

◆ DataSource

object Csla.Windows.CslaActionExtenderToolStrip.DataSource
getset

Gets or sets a reference to the data source object.

Definition at line 80 of file CslaActionExtenderToolStrip.cs.

◆ DirtyWarningMessage

string Csla.Windows.CslaActionExtenderToolStrip.DirtyWarningMessage
getset

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

Definition at line 132 of file CslaActionExtenderToolStrip.cs.

◆ ObjectIsValidMessage

string Csla.Windows.CslaActionExtenderToolStrip.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.

Definition at line 176 of file CslaActionExtenderToolStrip.cs.

◆ WarnIfCloseOnDirty

bool Csla.Windows.CslaActionExtenderToolStrip.WarnIfCloseOnDirty
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.

◆ WarnOnCancel

bool Csla.Windows.CslaActionExtenderToolStrip.WarnOnCancel
getset

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

Definition at line 146 of file CslaActionExtenderToolStrip.cs.

◆ WarnOnCancelMessage

string Csla.Windows.CslaActionExtenderToolStrip.WarnOnCancelMessage
getset

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

Definition at line 161 of file CslaActionExtenderToolStrip.cs.

Event Documentation

◆ BusinessObjectInvalid

EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.BusinessObjectInvalid

Event indicating the business object is in an invalid state.

Definition at line 475 of file CslaActionExtenderToolStrip.cs.

◆ Clicked

EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.Clicked

Event indicating the user clicked on the ToolStripButton.

Definition at line 454 of file CslaActionExtenderToolStrip.cs.

◆ Clicking

EventHandler<CslaActionCancelEventArgs> Csla.Windows.CslaActionExtenderToolStrip.Clicking

Event indicating the user is clicking on the ToolStripButton.

Definition at line 447 of file CslaActionExtenderToolStrip.cs.

◆ ErrorEncountered

EventHandler<ErrorEncounteredEventArgs> Csla.Windows.CslaActionExtenderToolStrip.ErrorEncountered

Event indicating an error was encountered.

Definition at line 461 of file CslaActionExtenderToolStrip.cs.

◆ HasBrokenRules

EventHandler<HasBrokenRulesEventArgs> Csla.Windows.CslaActionExtenderToolStrip.HasBrokenRules

Event indicating the business object has broken rules.

Definition at line 482 of file CslaActionExtenderToolStrip.cs.

◆ ObjectSaved

EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.ObjectSaved

Event indicating that the object has been saved.

Definition at line 496 of file CslaActionExtenderToolStrip.cs.

◆ ObjectSaving

EventHandler<CslaActionCancelEventArgs> Csla.Windows.CslaActionExtenderToolStrip.ObjectSaving

Event indicating that the object is saving.

Definition at line 489 of file CslaActionExtenderToolStrip.cs.

◆ SetForNew

EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtenderToolStrip.SetForNew

Event indicating the object is set for new.

Definition at line 468 of file CslaActionExtenderToolStrip.cs.