Пример #1
0
                public OptionsPanel( TaskPanel taskpanel)
                {
                        this.Orientation = Orientation.Vertical;
                        this.Width = Dimensions.GetWidth() * 0.27;
                        this.Height = Dimensions.GetHeight() * 0.8;
                        this.Background = ThemeSelector.GetBackground();

                        _sortingPU = new SortingPopUp(Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.5, "Sorting options");
                        _sortingPU.Hide();

                        _taskPanel = taskpanel;

                        _sortButton = new DefaultButton("Sort",this.Width/2,this.Height/20, new System.Windows.Thickness(0,20,0,0),new System.Windows.Thickness(0,0,0,0),HorizontalAlignment);
                        _sortButton.MouseDown += _sortButton_MouseDown;


                        _showDoneButton = new DefaultButton(this.GetShowDoneContent(), this.Width / 2, this.Height / 20, new System.Windows.Thickness(0, 20, 0, 0), new System.Windows.Thickness(0, 0, 0, 0), HorizontalAlignment);
                        _showDoneButton.MouseDown += _showDoneButton_MouseDown;
                       
                      
                              this.Children.Add(_sortButton);
                              this.Children.Add(_showDoneButton);

                              _sortingPU._sortImportanceButton.MouseDown += _sortImportanceButton_MouseDown;
                              _sortingPU._sortStateButton.MouseDown += _sortStateButton_MouseDown;
                              _sortingPU._sortCreationButton.MouseDown += _sortCreationButton_MouseDown;
                       
                }
Пример #2
0
                public ContentPanel(string name, HeaderPanel headerPanel)
                {
                        //Setting properties
                        this.Height = Dimensions.GetHeight()*0.75;
                        this.Margin = new System.Windows.Thickness(0, 10, 0, 0);
                        this.Orientation = System.Windows.Controls.Orientation.Horizontal;

                        //Setting fields
                        RightPanelCoordinator coord = new RightPanelCoordinator(this);
                        _taskPanel = new TaskPanel(_detailsPanel,name,coord);        
                        _optionsPanel = new OptionsPanel(_taskPanel);                        

                        _rightPanel = _optionsPanel;
                        _firstLoad = true;
                        _isOnOptions = true;
                        _projectName = name;
                        _scroller = new ScrollViewer();
                        _headerPanel = headerPanel;

                        //Adding children
                        _scroller.Content = _taskPanel;
                        this.Children.Add(_scroller);
                        this.Children.Add(_rightPanel);

                        //Loading Brainstormings on beginning by default
                        LoadBrainstorming();
                }