Exemplo n.º 1
0
        public VMDashboard(VMMain VMMain, UIDashboard View)
        {
            this.View           = View;
            this.View.ViewModel = this;
            this.VMMain         = VMMain;

            loadDataInDashboard();
        }
Exemplo n.º 2
0
 public void switchToDashboard()
 {
     if (User != null)
     {
         if (UIDashboard == null)
         {
             UIDashboard = new UIDashboard();
             VMDashboard = new VMDashboard(this, UIDashboard);
         }
         UIMainForm.getPnUserControl().Controls.Clear();
         UIMainForm.getPnUserControl().Controls.Add(UIDashboard);
     }
     else
     {
         switchToLogin();
     }
 }