/// <summary>
        /// Method to call the Apply functionality for each of tab pages of type MPage.
        /// </summary>
        /// <param name="actionCause"></param>
        /// <returns></returns>
        protected override bool Apply(EditDialogAction actionCause)
        {
            if (Applied && !bDataWasChanged)
            {
                return(true);
            }

            foreach (MPPage page in this.GetPages())
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                    if (page.PageID.Trim().Equals("ShareGeneralEditPage"))
                    {
                        ShareGeneralEditPage _editPage = (ShareGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                }
            }

            Applied = true;
            return(true);
        }
Example #2
0
 /// <summary>
 /// Method to call the Apply functionality for each of tab pages of type MPage.
 /// </summary>
 /// <param name="actionCause"></param>
 /// <returns></returns>
 protected override bool Apply(EditDialogAction actionCause)
 {
     if (Applied && !bDataWasChanged)
     {
         return(true);
     }
     //bool b = base.Apply(actionCause);
     foreach (MPPage page in this.GetPages())
     {
         if (page != null)
         {
             IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
             if (page.PageID.Trim().Equals("OUGeneralEditProperities"))
             {
                 OUGeneralEditPage _editPage = (OUGeneralEditPage)page;
                 if (!_editPage.OnApply())
                 {
                     return(false);
                 }
             }
             if (page.PageID.Trim().Equals("EditProperitiesAdvanced"))
             {
                 ADEditPage _editPage = (ADEditPage)page;
                 if (!_editPage.OnApply())
                 {
                     return(false);
                 }
             }
         }
     }
     Applied = true;
     return(true);
 }
        /// <summary>
        /// Method to call the Apply functionality for each of tab pages of type MPage.
        /// </summary>
        /// <param name="actionCause"></param>
        /// <returns></returns>
        protected override bool Apply(EditDialogAction actionCause)
        {
            if (Applied && !bDataWasChanged)
            {
                return(true);
            }

            foreach (MPPage page in this.GetPages())
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                    if (page.PageID.Trim().Equals("EditProperitiesAdvanced"))
                    {
                        ADEditPage _editPage = (ADEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("GroupMemofEditProperities"))
                    {
                        GroupMemOfPage _groupMemPage = (GroupMemOfPage)page;
                        if (!_groupMemPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("GroupMembersEditProperities"))
                    {
                        GroupMembersPage _groupMemsPage = (GroupMembersPage)page;
                        if (!_groupMemsPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("GroupGeneralEditProperities"))
                    {
                        GroupGeneralEditPage _editPage = (GroupGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("BuiltinGroupGeneralEditProperities"))
                    {
                        BuiltinGroupGeneralEditPage _editPage = (BuiltinGroupGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                }
            }
            Applied = true;
            return(true);
        }
Example #4
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);
             }
         }
     }
 }
Example #5
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);
            }
        }
 /// <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();
                 }
             }
         }
     }
 }
        /// <summary>
        /// Method to call the Apply functionality for each of tab pages of type MPage.
        /// </summary>
        /// <param name="actionCause"></param>
        /// <returns></returns>
        protected override bool Apply(EditDialogAction actionCause)
        {
            if (Applied && !bDataWasChanged)
            {
                return(true);
            }
            //bool b = base.Apply(actionCause);
            foreach (MPPage page in this.GetPages())
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;

                    if (page.PageID.Trim().Equals("UserMultiSelectProperities"))
                    {
                        UserMultiselectGeneralEditPage _editPage = (UserMultiselectGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("UserMultiSelectAddressProperities"))
                    {
                        MultiItemsAddressEditPage _editPage = (MultiItemsAddressEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("MultiItemsGeneralEditPage"))
                    {
                        MultiItemsGeneralEditPage _editPage = (MultiItemsGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                }
            }
            Applied = true;
            return(true);
        }
        /// <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);
                    }
                }
            }
        }
Example #9
0
        /// <summary>
        /// Method to call the Apply functionality for each of tab pages of type MPage.
        /// </summary>
        /// <param name="actionCause"></param>
        /// <returns></returns>
        protected override bool Apply(EditDialogAction actionCause)
        {
            //bool b = base.Apply(actionCause);
            bool retVal = false;

            Applied = true;

            foreach (MPPage page in this.GetPages())
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                    if (page.PageID.Trim().Equals("LogProperities"))
                    {
                        LogPropertiesPage _logPage = (LogPropertiesPage)page;
                        if (_logPage.OnOkApply())
                        {
                            retVal = true;
                        }
                        else
                        {
                            retVal = true;
                        }
                    }
                    if (page.PageID.Trim().Equals("FilterProperities"))
                    {
                        EventFilterControl _filterControl = (EventFilterControl)page;
                        if (_filterControl.OnOkApply())
                        {
                            retVal = true;
                        }
                        else
                        {
                            retVal = false;
                        }
                    }
                }
            }

            return(retVal);
        }
Example #10
0
 /// <summary>
 /// Method to call the Apply functionality for each of tab pages of type MPage.
 /// </summary>
 /// <param name="actionCause"></param>
 /// <returns></returns>
 protected override bool Apply(EditDialogAction actionCause)
 {
     foreach (MPPage page in this.GetPages())
     {
         if (page != null)
         {
             IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
             if (page.PageID.Trim().Equals("ObjectAddAttributesTab"))
             {
                 ObjectAddAttributesTab _AddAttributesPage = (ObjectAddAttributesTab)page;
                 if (_AddAttributesPage.OnApply())
                 {
                     return(true);
                 }
                 else
                 {
                     return(false);
                 }
             }
         }
     }
     return(true);
 }
Example #11
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);
                        }
                    }
                }
            }
        }
        /// <summary>
        /// Method to call the Apply functionality for each of tab pages of type MPage.
        /// </summary>
        /// <param name="actionCause"></param>
        /// <returns></returns>
        protected override bool Apply(EditDialogAction actionCause)
        {
            if (Applied && !bDataWasChanged)
            {
                return(true);
            }
            //bool b = base.Apply(actionCause);
            ICollection pages = this.GetPages();

            foreach (MPPage page in pages)
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                    if (page.PageID.Trim().Equals("EditProperitiesAdvanced"))
                    {
                        ADEditPage _editPage = (ADEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("UserMemofEditProperities"))
                    {
                        UserMemOfPage _userMemPage = (UserMemOfPage)page;
                        if (!_userMemPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("UserGeneralEditProperities"))
                    {
                        UserGeneralEditPage _editPage = (UserGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }

                    if (page.PageID.Trim().Equals("UserAccountPage"))
                    {
                        UserAccountPage _accountPage = (UserAccountPage)page;
                        if (!_accountPage.OnApply())
                        {
                            return(false);
                        }
                    }

                    if (page.PageID.Trim().Equals("UserProfilePage"))
                    {
                        UserProfilePage _profilePage = (UserProfilePage)page;
                        if (!_profilePage.OnApply())
                        {
                            return(false);
                        }
                    }

                    if (page.PageID.Trim().Equals("UserMultiSelectAddressProperities"))
                    {
                        MultiItemsAddressEditPage _editPage = (MultiItemsAddressEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                }
            }
            Applied = true;
            return(true);
        }