Windows Forms extender control that automatically enables and disables detail form controls based on the authorization settings from a CSLA .NET business object. More...
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... | |
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.
Csla.Windows.ReadWriteAuthorization.ReadWriteAuthorization | ( | IContainer | container | ) |
Creates an instance of the object.
container | The container of the control. |
Definition at line 42 of file ReadWriteAuthorization.cs.
bool Csla.Windows.ReadWriteAuthorization.CanExtend | ( | object | extendee | ) |
Gets a value indicating whether the extender control can extend the specified control.
extendee | The 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.
bool Csla.Windows.ReadWriteAuthorization.GetApplyAuthorization | ( | Control | source | ) |
Gets the custom ApplyAuthorization extender property added to extended controls.
source | Control being extended. |
Definition at line 69 of file ReadWriteAuthorization.cs.
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.
void Csla.Windows.ReadWriteAuthorization.SetApplyAuthorization | ( | Control | source, |
bool | value | ||
) |
Sets the custom ApplyAuthorization extender property added to extended controls.
source | Control being extended. |
value | New value of property. |
Definition at line 85 of file ReadWriteAuthorization.cs.