/// <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) { if (page.PageID.Trim().Equals("EditProperitiesAdvanced")) { ADEditPage _editPage = (ADEditPage)page; if (!_editPage.OnApply()) { return(false); } } if (page.PageID.Trim().Equals("ContainerGeneralEditProperities")) { ContainerGeneralEditPage _editPage = (ContainerGeneralEditPage)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("DomainGeneralEditProperities")) { DomainGeneralEditPage _editPage = (DomainGeneralEditPage)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); } //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); }