private void LoadDash(AdminLevel adminLevel) { IFetchActivities fetcher = new ActivityFetcher(adminLevel); DiseaseDashboard dash = new DiseaseDashboard(fetcher, adminLevel, false); dash.ReloadView = (v) => { ReloadView(v); }; dash.LoadView = (v) => { LoadView(v); }; dash.LoadForm = (v) => { LoadForm(v); }; dash.StatusChanged = (s) => { StatusChanged(s); }; dash.LoadContent(); //dash.Dock = DockStyle.Fill; pnlLf.Controls.Add(dash); }
private void menuIndicatorManagementToolStripMenuItem_Click(object sender, EventArgs e) { DiseaseDashboard dash = new DiseaseDashboard(true); dash.ReloadView = (v) => { }; dash.LoadView = (v) => { }; dash.LoadForm = (v) => { LoadForm(v); }; dash.StatusChanged = (s) => { }; WizardForm wiz = new WizardForm(new IndStepType(), Translations.MenuIndicatorManagement); wiz.OnFinish = import_OnSuccess; wiz.OnClose = () => { LoadDashboard(new DashboardView()); }; wiz.ShowDialog(); }
private void menuMergeDistrictToolStripMenuItem_Click(object sender, EventArgs e) { SettingsRepository repo = new SettingsRepository(); DiseaseDashboard dash = new DiseaseDashboard(true); dash.ReloadView = (v) => { }; dash.LoadView = (v) => { }; dash.LoadForm = (v) => { LoadForm(v); }; dash.StatusChanged = (s) => { }; WizardForm wiz = new WizardForm(new BackupForRedistrict(new RedistrictingOptions { Dashboard = dash, SplitType = SplittingType.Merge }), Translations.SplitMergeTitle); wiz.OnFinish = import_OnSuccess; wiz.OnClose = () => { LoadDashboard(new DashboardView()); }; wiz.ShowDialog(); }