CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. More...
 
bool CanExtend (object extendee)
 Gets a value indicating whether the extender control can extend the specified control. More...
 
bool GetApplyAuthorization (Control source)
 Gets the custom ApplyAuthorization extender property added to extended controls. More...
 
void SetApplyAuthorization (Control source, bool value)
 Sets the custom ApplyAuthorization extender property added to extended controls. More...
 
void ResetControlAuthorization ()
 Causes the ReadWriteAuthorization control to apply authorization rules from the business object to all extended controls on the form. More...
 

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.

Definition at line 26 of file ReadWriteAuthorization.cs.

Constructor & Destructor Documentation

◆ ReadWriteAuthorization()

Csla.Windows.ReadWriteAuthorization.ReadWriteAuthorization ( IContainer  container)

Creates an instance of the object.

Parameters
containerThe container of the control.

Definition at line 42 of file ReadWriteAuthorization.cs.

Member Function Documentation

◆ CanExtend()

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

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.

Definition at line 54 of file ReadWriteAuthorization.cs.

◆ GetApplyAuthorization()

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

Gets the custom ApplyAuthorization extender property added to extended controls.

Parameters
sourceControl being extended.

Definition at line 69 of file ReadWriteAuthorization.cs.

◆ ResetControlAuthorization()

void Csla.Windows.ReadWriteAuthorization.ResetControlAuthorization ( )

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.

Definition at line 109 of file ReadWriteAuthorization.cs.

◆ SetApplyAuthorization()

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

Sets the custom ApplyAuthorization extender property added to extended controls.

Parameters
sourceControl being extended.
valueNew value of property.

Definition at line 85 of file ReadWriteAuthorization.cs.