Пример #1
0
 private void ShowAdminDashboard(object sender, EventArgs e)
 {
     if (_childFormNumber != 0) {
         MessageBox.Show(Resources.FrmMdi_ShowClientDashboard_Vous_avez_deja_un_Dashboard_ouvert);
         return;
     }
     var dashboardManager = new DashboardAdminManager(this);
     ChildFormIncrement();
     dashboardManager.MdiParent = this;
     dashboardManager.Show();
 }
Пример #2
0
 private void LauchDashboard()
 {
     try {
         if (!CGlobalCache.SessionManager.IsAdministrateur) {
             var dashboardManager = new DashboardManager(this) {MdiParent = this};
             dashboardManager.Show();
         } else {
             var dashboardAdminManager = new DashboardAdminManager(this);
             dashboardAdminManager.MdiParent = this;
             dashboardAdminManager.Show();
         }
     } catch (Exception ex) {
         throw;
     } finally {
         ChildFormIncrement();
     }
 }