C# Class GSF.Windows.SecureWindow

Represents a WPF window secured using role-based security.
Inheritance: System.Windows.Window
Exibir arquivo Open project: GridProtectionAlliance/gsf

Public Properties

Property Type Description
ForceLoginDisplayProperty System.Windows.DependencyProperty
IncludedRolesProperty System.Windows.DependencyProperty
ResourceAccessiblityProperty System.Windows.DependencyProperty

Public Methods

Method Description
SecureWindow ( ) : System

Initializes a new instance of the SecureWindow class.

Protected Methods

Method Description
GetResourceName ( ) : string

Gets the name of resource being accessed.

Private Methods

Method Description
IsResourceAccessible ( string resource ) : bool
SecureWindow_Initialized ( object sender, EventArgs e ) : void
ShowSecurityDialog ( DisplayType displayType, string errorMessage = null ) : void

Method Details

GetResourceName() protected method

Gets the name of resource being accessed.
protected GetResourceName ( ) : string
return string

SecureWindow() public method

Initializes a new instance of the SecureWindow class.
public SecureWindow ( ) : System
return System

Property Details

ForceLoginDisplayProperty public_oe static_oe property

Identifies the ForceLoginDisplay dependency property.
public static DependencyProperty,System.Windows ForceLoginDisplayProperty
return System.Windows.DependencyProperty

IncludedRolesProperty public_oe static_oe property

Identifies the IncludedRoles dependency property.
public static DependencyProperty,System.Windows IncludedRolesProperty
return System.Windows.DependencyProperty

ResourceAccessiblityProperty public_oe static_oe property

Identifies the ResourceAccessiblity dependency property.
public static DependencyProperty,System.Windows ResourceAccessiblityProperty
return System.Windows.DependencyProperty