private void BaseCall(IModelTemplate settings) { IModelTemplateWin templateModel = (IModelTemplateWin)settings; TemplatesHelper templatesHelper = new TemplatesHelper(templateModel); var viewSiteManager = (ViewSiteManager)this.GetFieldValue("viewSiteManager"); var formState = viewSiteManager.View != null?templatesHelper.GetFormStateNode(viewSiteManager.View.Id) : templatesHelper.GetFormStateNode(); var formStateModelSynchronizer = (FormStateModelSynchronizer)this.GetFieldValue("formStateModelSynchronizer"); formStateModelSynchronizer.Model = formState; templatesHelper.SetRibbonSettings(Ribbon); }
void ISupportStoreSettings.SetSettings(IModelTemplate settings) { IModelTemplateWin templateModel = (IModelTemplateWin)settings; TemplatesHelper templatesHelper = new TemplatesHelper(templateModel); IModelFormState formState; if (viewSiteManager.View != null) { formState = templatesHelper.GetFormStateNode(viewSiteManager.View.Id); } else { formState = templatesHelper.GetFormStateNode(); } formStateModelSynchronizer.Model = formState; templatesHelper.SetRibbonSettings(ribbonControl); }
void ISupportStoreSettings.SetSettings(IModelTemplate settings) { IModelTemplateWin templateModel = (IModelTemplateWin)settings; TemplatesHelper templatesHelper = new TemplatesHelper(templateModel); formStateModelSynchronizer.Model = templatesHelper.GetFormStateNode(); navigation.Model = templatesHelper.GetNavBarCustomizationNode(); templatesHelper.SetRibbonSettings(ribbonControl); }