public void Bind(FrmParent frmParent, IFormPageBinder pageBinder) { this.frmParent = frmParent; this.pageBinder = pageBinder; DotSetupLauncher dotSetupManager = DotSetupLauncher.Instance; formsDictionary = dotSetupManager.configLoader.FormsDictionary(frmParent, pageBinder); dotSetupManager.configLoader.UpdateParentDesign(frmParent); frmParent.Load += new EventHandler(FrmParent_Load); }
internal Dictionary <PageDesign, Form> FormsDictionary(FrmParent frmParent, IFormPageBinder pageBinder) { if (configParser == null) { return(null); } List <PageDesign> pagesDesign = configParser.GetPagesDesign(); Dictionary <PageDesign, Form> frmDictionary = new Dictionary <PageDesign, Form>(); foreach (PageDesign pageDesign in pagesDesign) { Form page = pageBinder.GetFormPage(pageDesign.PageName, frmParent); if (page != null) { frmDictionary.Add(pageDesign, DecoratePage(page, pageDesign)); } } return(frmDictionary); }