private void BaseDataManageForm_Load(object sender, EventArgs e) { BaseDataModule mod = new BaseDataModule(); mod.Dock = DockStyle.Fill; this.Controls.Add(mod); }
public List <CmsPage> IsInUseAtPages(CmsSite site) { List <CmsPage> returnPages = new List <CmsPage>(); foreach (CmsPage page in site.Pages) { foreach (BaseModule mod in page.Modules) { BaseDataModule dataModule = BaseObject.GetById <BaseDataModule>(mod.ID); //FIX DataCollection dataCollection = dataModule.DataCollection; if (dataCollection != null && dataCollection.Equals(this)) { if (!returnPages.Contains(page)) { returnPages.Add(page); } } } } return(returnPages); }