Пример #1
0
 public override void tabControl_SelectedIndexChanged(object sender, EventArgs e)
 {
     foreach (MPPage page in this.GetPages())
     {
         if (page != null)
         {
             IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
             if (ipp != null && page.PageID == SelectedTabPageID && page.Tag != null)
             {
                 ipp.SetData(objInfo.ce, objInfo.servername, objInfo.objectName, objInfo.dirnode);
             }
         }
     }
 }
Пример #2
0
        private void doPage_SetData(object args)
        {
            if (!(args is ObjectPropertyInfo))
            {
                return;
            }

            ObjectPropertyInfo       info = args as ObjectPropertyInfo;
            IDirectoryPropertiesPage page = info.page as IDirectoryPropertiesPage;

            if (page != null)
            {
                page.SetData(info.ce, info.servername, info.objectName, info.dirnode);
            }
        }
Пример #3
0
 /// <summary>
 /// Method to load data to the tab pages while loading
 /// Gets all the tab pages that are of type MPage and gets call the SetData()
 /// Queries the ldap message to the selected node
 /// </summary>
 /// <param name="ce"></param>
 /// <param name="servername"></param>
 /// <param name="computer"></param>
 /// <param name="dirnode"></param>
 /// <param name="ldapSchemaCache"></param>
 public void SetData()
 {
     if (this.GetPages() != null)
     {
         foreach (MPPage page in this.GetPages())
         {
             if (page != null)
             {
                 IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                 if (ipp != null)
                 {
                     ipp.SetData();
                 }
             }
         }
     }
 }
Пример #4
0
        /// <summary>
        /// Method to load data to the tab pages while loading
        /// Gets all the tab pages that are of type MPage and gets calls the SetData()
        /// Queries the ldap message to the selected node
        /// </summary>
        /// <param name="ce"></param>
        /// <param name="servername"></param>
        /// <param name="computer"></param>
        /// <param name="dirnode"></param>
        /// <param name="ldapSchemaCache"></param>
        public void SetData(CredentialEntry ce, string sharename, object shareInfo)
        {
            Applied = false;

            this.Text = String.Format(Text, sharename);

            ICollection pages = this.GetPages();

            foreach (MPPage page in pages)
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                    if (ipp != null)
                    {
                        ipp.SetData(ce, sharename, shareInfo);
                    }
                }
            }
        }
Пример #5
0
        /// <summary>
        /// Method to load data to the tab pages while loading
        /// Gets all the tab pages that are of type MPage and gets call the SetData()
        /// Queries the ldap message to the selected node
        /// </summary>
        /// <param name="ce"></param>
        /// <param name="servername"></param>
        /// <param name="computer"></param>
        /// <param name="dirnode"></param>
        /// <param name="ldapSchemaCache"></param>
        public void SetData(CredentialEntry ce, string servername, string computer, ADUCDirectoryNode dirnode, LDAPSchemaCache ldapSchemaCache)
        {
            string PageTitle = string.Format("cn={0}", _objectAddDlg.objectInfo.htMandatoryAttrList["cn"]);

            if (PageTitle != null)
            {
                this.Text = String.Format(this.Text, PageTitle);
            }

            if (this.GetPages() != null)
            {
                foreach (MPPage page in this.GetPages())
                {
                    if (page != null)
                    {
                        IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                        if (ipp != null)
                        {
                            ipp.SetData(ce, servername, computer, dirnode);
                        }
                    }
                }
            }
        }