Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / Visual Basic

RestrictedUI: A .NET Library for restricting a user interface based on a security policy

Rate me:
Please Sign up or sign in to vote.
4.30/5 (17 votes)
26 May 2010MPL21 min read 26.8K   1.3K   69  
How to control the user interface using a policy established in a declaratively way, based on user roles and application status.
[Form1]
ToolStrip1
ToolStrip1.ToolStripButton1
ToolStrip1.ToolStripSplitButton1
ToolStrip1.ToolStripComboBox1
ToolStrip1.ToolStripTextBox1
MenuStrip1
MenuStrip1.FileToolStripMenuItem
MenuStrip1.FileToolStripMenuItem.NewToolStripMenuItem
MenuStrip1.FileToolStripMenuItem.CloseToolStripMenuItem
MenuStrip1.FileToolStripMenuItem.ToolStripSeparator1
MenuStrip1.FileToolStripMenuItem.ToolStripMenuItem1
MenuStrip1.FileToolStripMenuItem.ToolStripMenuItem1.Option1ToolStripMenuItem
MenuStrip1.FileToolStripMenuItem.ToolStripMenuItem1.Option2ToolStripMenuItem
MenuStrip1.FileToolStripMenuItem.ExitToolStripMenuItem
MenuStrip1.EditToolStripMenuItem
MenuStrip1.EditToolStripMenuItem.CutToolStripMenuItem
MenuStrip1.EditToolStripMenuItem.CopyToolStripMenuItem
MenuStrip1.EditToolStripMenuItem.PasteToolStripMenuItem
MenuStrip1.EditToolStripMenuItem.ToolStripComboBox2
cControls
cControls.Sel
cControls.IDControl
cControls.Name
cControls.Type
cControls.Groups
gbCommands
gbCommands.btnReinitialize
gbCommands.cbUseReadOnly
gbCommands.Label3
gbCommands.cbAditionalLogicOfRestriction
gbCommands.lblInstance
gbCommands.btnExcludeControl
gbCommands.btnForceEnabled
gbCommands.btnForceVisibility
gbCommands.cbPaused
gbCommands.btnRestrictionsMngt
gbCommands.btnEnableVisible
gbCommands.btnEnableEnabled
gbCommands.btnDisableVisible
gbCommands.btnEnableVisible_N
gbCommands.Label4
gbCommands.btnTest
gbCommands.txtRestrictions
gbCommands.txtState
gbCommands.Label1
gbCommands.txtRoles
gbCommands.btnDisableEnabled
gbCommands.Label2
Label6
Label5
TreeView1
TreeView1.Node0
TreeView1.Node0.Node1
TreeView1.Node0.Node2
TreeView1.Node3
TreeView1.Node3.Node4
TreeView1.Node3.Node4.Node5
UltraTree1
UltraTree1.Node0
UltraTree1.Node0.Node1
UltraTree1.Node0.Node1.Node2
UltraTree1.Node0.Node1.Node3
UltraTree1.Node0.Node1.Node4
UltraTree1.Node0.Node5
GroupBox1
GroupBox1.CheckBox1
GroupBox1.TextBox2
GroupBox1.UltraGrid1
GroupBox1.UltraGrid1.0·Sel
GroupBox1.UltraGrid1.0·IDControl
GroupBox1.UltraGrid1.0·Name
GroupBox1.UltraGrid1.0·Type
GroupBox1.UltraGrid1.0·Groups
combo
TextBox


[Form2_Sub1]
TextBox1
CheckBox1
Button1

[Form2]
UserControl31
UserControl31.TextBox1
UserControl31.CheckBox1
TabControl1
TabControl1.TabPage1
TabControl1.TabPage1.UserControl11
TabControl1.TabPage1.UserControl11.TextBox1
TabControl1.TabPage1.UserControl11.CheckBox1
TabControl1.TabPage1.UserControl11.Button1
TabControl1.TabPage2
TabControl1.TabPage2.UserControl12
TabControl1.TabPage2.UserControl12.TextBox1
TabControl1.TabPage2.UserControl12.CheckBox1
TabControl1.TabPage2.UserControl12.Button1
TabControl1.TabPage3
TabControl1.TabPage3.UserControl21
TabControl1.TabPage3.UserControl21.TreeView1
TabControl1.TabPage3.UserControl21.TreeView1.Nodo0
TabControl1.TabPage3.UserControl21.TreeView1.Nodo0.Nodo1
TabControl1.TabPage3.UserControl21.TreeView1.Nodo0.Nodo2
TabControl1.TabPage3.UserControl21.TreeView1.Nodo3
TabControl1.TabPage3.UserControl21.TreeView1.Nodo3.Nodo4
TabControl1.TabPage3.UserControl21.TreeView1.Nodo3.Nodo4.Nodo5
TabControl1.TabPage3.UserControl21.GroupBox1
TabControl1.TabPage3.UserControl21.GroupBox1.RadioButton2
TabControl1.TabPage3.UserControl21.GroupBox1.RadioButton1
TabControl1.TabPage4
TabControl1.TabPage4.UserControl22
TabControl1.TabPage4.UserControl22.TreeView1
TabControl1.TabPage4.UserControl22.TreeView1.Nodo0
TabControl1.TabPage4.UserControl22.TreeView1.Nodo0.Nodo1
TabControl1.TabPage4.UserControl22.TreeView1.Nodo0.Nodo2
TabControl1.TabPage4.UserControl22.TreeView1.Nodo3
TabControl1.TabPage4.UserControl22.TreeView1.Nodo3.Nodo4
TabControl1.TabPage4.UserControl22.TreeView1.Nodo3.Nodo4.Nodo5
TabControl1.TabPage4.UserControl22.GroupBox1
TabControl1.TabPage4.UserControl22.GroupBox1.RadioButton2
TabControl1.TabPage4.UserControl22.GroupBox1.RadioButton1
Button1

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Mozilla Public License 1.1 (MPL 1.1)


Written By
Spain Spain
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions