private void OnDashboardDesignerOpening(object sender, Dashboard.Controllers.DashboardDesignerOpeningEventArgs e) { var args = ((DashboardDesignerOpeningEventArgs)e); var settings = (IModelModelMap)(((IModelApplicationDashboardModule)Application.Model).DashboardModule).GetNode("DesignerSettings"); settings.BindTo(args.Designer); }
private void OnDashboardDesignerOpening(object sender, Dashboard.Controllers.DashboardDesignerOpeningEventArgs e) { var args = ((DashboardDesignerOpeningEventArgs)e); var settings = ((IModelDashboardModuleDesignerSettings)((IModelApplicationDashboardModule)Application.Model).DashboardModule).DesignerSettings; new ObjectModelSynchronizer(args.Designer.DataSourceWizardSettings, settings).ApplyModel(); }