예제 #1
0
 /// <summary>
 /// Loads the panels in the separated thread to be able to show WorkingInfoForm
 /// to the user
 /// </summary>
 private void bg_DoWork(object sender, DoWorkEventArgs e)
 {
     switch (workingInfoEnum)
     {
         case PanelLoadingEnum.LoadingDashboardPanel:
             if (dashboardPanel == null)
                 dashboardPanel = new UserControls.Dashboard.GoogleIntegratedCalendarControl(ref calendarSynchronizer);
             break;
         case PanelLoadingEnum.LoadingAmbulantionPanel:
             if(ambulantionPanel == null)
                 ambulantionPanel = new AmbulantionUserControl(calendarSynchronizer);
             break;
         case PanelLoadingEnum.LoadingPatientsPanel:
             if (patientsPanel == null)
                 patientsPanel = new PatientsUserControl();
             break;
         case PanelLoadingEnum.LoadingAdministrationPanel:
             if (administrationPanel == null)
                 administrationPanel = new AdministrationUserControl();
             break;
         case PanelLoadingEnum.LoadAll:
             if (dashboardPanel == null)
                 dashboardPanel = new UserControls.Dashboard.GoogleIntegratedCalendarControl(ref calendarSynchronizer);
             if (ambulantionPanel == null)
                 ambulantionPanel = new AmbulantionUserControl(calendarSynchronizer);
             if (patientsPanel == null)
                 patientsPanel = new PatientsUserControl();
             if (administrationPanel == null)
                 administrationPanel = new AdministrationUserControl();
             break;
         default:
             break;
     }
 }
예제 #2
0
 public void SetCalendarControl(GoogleIntegratedCalendarControl calendarControl)
 {
     this.calendarControl = calendarControl;
 }