Esempio n. 1
0
                }//FillBrainstormings

                public void FillTrainings(OptionsPanel optionsPanel)
                {
                        optionsPanel.ShowButtons();
                        this.Children.Clear();
                        //List<Model.AdvancedTask> trains = _chief.SelectTrainings();


                        List<Model.AdvancedTask> trains = new Sorter().Sort(_chief, UIStates.ON_TRAINING);

                        if(trains.Count != 0)
                        {
                                foreach (Model.AdvancedTask item in trains)
                                {
                                        SingleAdvancedTaskPanel training = new SingleAdvancedTaskPanel(item);
                                        _trainingList.Add(training);
                                        training.MouseDown += Trainings_MouseDown;
                                        this.Children.Add(training);
                                }
                        }
                        else
                        {
                                this.Children.Add(new EmptyTaskPanel(ControlsValues.TRAINING));

                        }
                      
                }//FillTrainings()
Esempio n. 2
0
                }//FillTrainings()

                public void FillAssignments(OptionsPanel optionsPanel)
                {
                        optionsPanel.ShowButtons();
                        this.Children.Clear();
                        List<Model.AdvancedTask> assignments = new Sorter().Sort(_chief, UIStates.ON_ASSIGNMENT);

                        if(assignments.Count != 0)
                        {
                                foreach (Model.AdvancedTask item in assignments)
                                {

                                        SingleAdvancedTaskPanel assignment = new SingleAdvancedTaskPanel(item);
                                        _assignmentsList.Add(assignment);
                                        assignment.MouseDown += Assignments_MouseDown;
                                        this.Children.Add(assignment);
                                }
                        }

                        else
                        {
                                this.Children.Add(new EmptyTaskPanel(ControlsValues.ASSIGNMENTS));

                        }
                       
                }//FillAssignments()
Esempio n. 3
0
                }//FillAssignments()

                public void FillMaintenances(OptionsPanel optionsPanel)
                {
                        optionsPanel.ShowButtons();
                        this.Children.Clear();
                        List<Model.AdvancedTask> maintenances = new Sorter().Sort(_chief, UIStates.ON_MAINTENANCE);

                        if(maintenances.Count != 0)
                        {
                                foreach (Model.AdvancedTask item in maintenances)
                                {

                                        SingleAdvancedTaskPanel maintenance = new SingleAdvancedTaskPanel(item);
                                        _maintenancesList.Add(maintenance);
                                        maintenance.MouseDown += Maintenances_MouseDown;
                                        this.Children.Add(maintenance);
                                }
                        }
                        else
                        {
                                this.Children.Add(new EmptyTaskPanel(ControlsValues.MAINTENANCE));

                        }
                      
                }//FillAssignments()