Beispiel #1
0
 public void Show(IHostUI hostUI, DashboardData data)
 {
     mHostUI  = hostUI;
     mCompany = mHostUI.Company;
     mData    = data;
     mData.Load();
     DisplayData();
     SetCellDetailVisiblity(false);
     this.MdiParent = mHostUI.GetMainForm();
     this.Show();
 }
Beispiel #2
0
 private void ClickHandler(object sender, EventArgs e)
 {
     using (var specsForm = new BudgetSpecsForm(HostUI))
     {
         if (specsForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             DashboardData data       = new DashboardData(HostUI.Company, specsForm.Handler, specsForm.PeriodDays, specsForm.PeriodCount, specsForm.StartDate);
             var           budgetForm = new BudgetDashboardForm();
             budgetForm.Show(HostUI, data);
         }
     }
 }