コード例 #1
0
        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);
        }
コード例 #2
0
        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();
        }