}//ToDetails


                /// <summary>
                /// Displays the Details panel, is used for advanced tasks
                /// </summary>
                /// <param name="dp"></param>
                internal void ToDetails(string name, string details, SingleTaskPanel taskPanel, string priority, string state)
                {
                        //Removing the options panel so that the right panel can become the details panel
                        _contentPanel.Children.Remove(_contentPanel._optionsPanel);

                        DetailsPanel dp = new DetailsPanel(name, details, taskPanel,this, priority, state);
                        //If the details panel has not been instantiated
                        if(_contentPanel._detailsPanel == null)
                        {
                                //We create a new details panel and add it to the content panel
                                
                                _contentPanel._detailsPanel = dp;
                                _contentPanel.Children.Add(_contentPanel._detailsPanel);  
                        }

                        else
                        {
                                _contentPanel.Children.Remove(_contentPanel._detailsPanel);
                                _contentPanel._detailsPanel = dp;
                                _contentPanel.Children.Add(_contentPanel._detailsPanel);  
                        }
                    
                        //We are on the details panel, we are no longer on the options panel
                        _contentPanel._isOnOptions = false;
                }//ToDetails
Ejemplo n.º 2
0
                public TaskPanel(DetailsPanel detailsPanel, string name, RightPanelCoordinator coordinator)
                {
                      //Setting up properties
                        this.Orientation = System.Windows.Controls.Orientation.Vertical;
                        this.Margin = new System.Windows.Thickness(0, 0, 10, 0);
                        this.Width = Dimensions.GetWidth() * 0.6;
                        this.MinHeight = Dimensions.GetHeight() * 0.8;
                        //this.Background = ThemeSelector.GetPopUpBackground();

                        //Setting up fields
                        _chief = new TaskMasterChief(name);
                        _coordinator = coordinator;
                       
                        _brainstormingList = new List<SingleTaskPanel>();
                        _trainingList = new List<SingleAdvancedTaskPanel>();
                        _assignmentsList = new List<SingleAdvancedTaskPanel>();
                        _maintenancesList = new List<SingleAdvancedTaskPanel>();
                }