コード例 #1
0
        private void QuickStartForm_Load(object sender, System.EventArgs e)
        {
            // Initialize image to embedded logo
            this.logoPictureBox.Image = GetEmbeddedImage("SecurityQuickStart.logo.gif");

            // Initializes the Enterprise Library authorization and security caching providers
            // The ASP.NET Membership and Profile providers do not need to be initialized in this way
            this.ruleProvider = AuthorizationFactory.GetAuthorizationProvider("RuleProvider");
            this.cache        = SecurityCacheFactory.GetSecurityCacheProvider("Caching Store Provider");

            // Initialize forms displayed for user interaction
            this.addUserRoleForm = new AddUserRoleForm();
            this.userRoleForm    = new UserRoleForm();
            this.usersForm       = new UsersForm();
            this.credentialsForm = new CredentialsForm();
            this.roleAuthForm    = new RoleAuthorizationForm();
            this.profileForm     = new ProfileForm();
        }
コード例 #2
0
ファイル: QuickStartForm.cs プロジェクト: bnantz/NCS-V2-0
        private void QuickStartForm_Load(object sender, System.EventArgs e)
        {
            // Initialize image to embedded logo
            this.logoPictureBox.Image = GetEmbeddedImage("SecurityQuickStart.logo.gif");

            // Initializes the Enterprise Library authorization and security caching providers
            // The ASP.NET Membership and Profile providers do not need to be initialized in this way
            this.ruleProvider = AuthorizationFactory.GetAuthorizationProvider("RuleProvider");
            this.cache = SecurityCacheFactory.GetSecurityCacheProvider("Caching Store Provider");

            // Initialize forms displayed for user interaction
            this.addUserRoleForm = new AddUserRoleForm();
            this.userRoleForm = new UserRoleForm();
            this.usersForm = new UsersForm();
            this.credentialsForm = new CredentialsForm();
            this.roleAuthForm = new RoleAuthorizationForm();
            this.profileForm = new ProfileForm();
        }