Ejemplo n.º 1
0
        private void LoadDashboardAndCheckStartTasks()
        {
            var dashboard = new DashboardView();
            LoadDashboard(dashboard);
            BackgroundWorker updateWorker = new BackgroundWorker();
            updateWorker.DoWork += updateWorker_DoWork;
            updateWorker.RunWorkerCompleted += updateWorker_RunWorkerCompleted;
            updateWorker.RunWorkerAsync();

        }
Ejemplo n.º 2
0
 private void LoadDashboard(DashboardView dashboard)
 {
     SetPermissions();
     dashboard.StatusChanged += view_StatusChanged;
     dashboard.LoadView = (v) => { LoadView(v); };
     dashboard.LoadDashForAdminLevel = (a) =>
     {
         DashboardView d = new DashboardView();
         if (a != null)
             d = new DashboardView(a);
         LoadDashboard(d);
     };
     LoadView(dashboard);
 }