internal CFileDialogPermPropPage(CPSetWrapper nps) :  base(nps)
        {
            IPermission perm = m_pSetWrap.PSet.GetPermission(typeof(FileDialogPermission));

            m_PermControls = new CFileDialogPermControls(perm, this);
            m_sTitle       = CResourceStore.GetString("FileDialogPerm:PermName");
        }// CFileDialogPermPropPage
 internal CAddPermissionsWizard(CPSetWrapper ps)
 {
     m_ps             = ps;
     m_sName          = "Add Permissions Wizard";
     m_aPropSheetPage = new CPropPage[] { new CNewPermSetWiz2(Security.CreatePermissionArray(m_ps.PSet)) };
     m_fFinished      = false;
 }// CNewPermSetWizard
        }// struct CustomPages

        internal CSinglePermissionSet(NamedPermissionSet permSet, PolicyLevel pl, bool fReadOnly)
        {
            base.ReadOnly   = fReadOnly;
            m_sGuid         = "E90A7E88-FB3C-4734-8245-0BEBCB4E6D63";
            m_sHelpSection  = "";
            m_fReadShowHTML = false;
            m_fDeleted      = false;
            m_pl            = pl;

            m_psetWrapper          = new CPSetWrapper();
            m_psetWrapper.PSet     = permSet;
            m_psetWrapper.PolLevel = m_pl;

            m_hIcon        = CResourceStore.GetHIcon("permissionset_ico");
            m_sDisplayName = permSet.Name;

            m_alCustomPropPages = new ArrayList();

            // Set up the icons we'll be displaying for each permission
            m_hRestrictedIcon  = CResourceStore.GetHIcon("permission_ico");
            m_iRestrictedIndex = CResourceStore.GetIconCookie(m_hRestrictedIcon);

            m_hUnRestrictedIcon  = CResourceStore.GetHIcon("permission_ico");
            m_iUnRestrictedIndex = CResourceStore.GetIconCookie(m_hUnRestrictedIcon);

            m_fReadOnlyPermissionSet = false;
            try
            {
                // This line will throw an exception if we're trying to do this with a
                // reserved permission set
                m_pl.ChangeNamedPermissionSet(permSet.Name, permSet);
            }
            catch (Exception)
            {
                m_fReadOnlyPermissionSet = true;
            }

            m_taskpad = new CSinglePermSetTaskPad(this);

            m_oResults       = m_taskpad;
            m_aPropSheetPage = null;

            // Get the permissions
            GenerateGivenPermissionsStringList();

            m_permProps = null;
        }// CSinglePermissionSet
Beispiel #4
0
 internal CDNSPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("Dnsperm:PermName");
 }// CDNSPermPropPage
Beispiel #5
0
 internal CDirectoryServicesPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("DirectoryServicesPerm:PermName");
 }// CDirectoryServicesPermPropPage
 internal CSinglePermissionSetProp(CPSetWrapper psw, bool fReadOnly)
 {
     m_sTitle      = CResourceStore.GetString("CSinglePermissionSetProp:PageTitle");
     m_psetWrapper = psw;
     m_fReadOnly   = fReadOnly;
 }// CSinglePermissionSetProp
Beispiel #7
0
 internal CPermPropPage(CPSetWrapper pSetWrap)
 {
     m_pSetWrap = pSetWrap;
 }// CPermPropPage
 internal CReflectPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("Reflectperm:PermName");
 }// CReflectPermPropPage
 internal CPerformanceCounterPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("PerformanceCounterPerm:PermName");
 }// CPerformanceCounterPermPropPage
Beispiel #10
0
 internal CPrintingPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("PrintingPermission:PermName");
 }// CPrintingPermPropPage
 //-------------------------------------------------
 // CIsoStoragePermPropPage - Constructor
 //
 // Initializes the property page with the permisison set
 // that it will be modifying
 //-------------------------------------------------
 internal CIsoStoragePermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("Isolatedstorageperm:PermName");
 }// CIsoStoragePermPropPage
Beispiel #12
0
 //-------------------------------------------------
 // CMessageQueuePermPropPage - Constructor
 //
 // Initializes the property page with the permisison set
 // that it will be modifying
 //-------------------------------------------------
 internal CMessageQueuePermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("MessageQueuePermission:PermName");
 }// CMessageQueuePermPropPage
 internal CSQLClientPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("SQLClientPerm:PermName");
 }// CSQLClientPermPropPage
Beispiel #14
0
 internal CEnvPermPropPage(CPSetWrapper nps) : base(nps)
 {
     m_sTitle = CResourceStore.GetString("EnvironmentPerm:PermName");
 }// CEnvPermPropPage