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

Windows Forms extender control that automatically enables and disables detail form controls based on the authorization settings from a CSLA .NET business object. More...

Inheritance diagram for Csla.Windows.ReadWriteAuthorization:

Public Member Functions

 ReadWriteAuthorization (IContainer container)
 Creates an instance of the object.
bool CanExtend (object extendee)
 Gets a value indicating whether the extender control can extend the specified control.
bool GetApplyAuthorization (Control source)
 Gets the custom ApplyAuthorization extender property added to extended controls.
void SetApplyAuthorization (Control source, bool value)
 Sets the custom ApplyAuthorization extender property added to extended controls.
void ResetControlAuthorization ()
 Causes the ReadWriteAuthorization control to apply authorization rules from the business object to all extended controls on the form.

Detailed Description

Windows Forms extender control that automatically enables and disables detail form controls based on the authorization settings from a CSLA .NET business object.

Constructor & Destructor Documentation

◆ ReadWriteAuthorization()

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

Creates an instance of the object.

Parameters
containerThe container of the control.
Exceptions
ArgumentNullExceptioncontainer is null.

Member Function Documentation

◆ CanExtend()

bool Csla.Windows.ReadWriteAuthorization.CanExtend ( object extendee)
inline

Gets a value indicating whether the extender control can extend the specified control.

Parameters
extendeeThe control to be extended.

Any control implementing either a ReadOnly property or Enabled property can be extended.

Exceptions
ArgumentNullExceptionextendee is null.

◆ GetApplyAuthorization()

bool Csla.Windows.ReadWriteAuthorization.GetApplyAuthorization ( Control source)
inline

Gets the custom ApplyAuthorization extender property added to extended controls.

Parameters
sourceControl being extended.
Exceptions
ArgumentNullExceptionsource is null.

◆ ResetControlAuthorization()

void Csla.Windows.ReadWriteAuthorization.ResetControlAuthorization ( )
inline

Causes the ReadWriteAuthorization control to apply authorization rules from the business object to all extended controls on the form.

Call this method to refresh the display of detail controls on the form any time the authorization rules may have changed. Examples include: after a user logs in or out, and after an object has been updated, inserted, deleted or retrieved from the database.

◆ SetApplyAuthorization()

void Csla.Windows.ReadWriteAuthorization.SetApplyAuthorization ( Control source,
bool value )
inline

Sets the custom ApplyAuthorization extender property added to extended controls.

Parameters
sourceControl being extended.
valueNew value of property.
Exceptions
ArgumentNullExceptionsource is null.

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