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(); }
public EventCoordinator(HeaderPanel headerPanel, ContentPanel contentPanel) { _headerPanel = headerPanel; _contentPanel = contentPanel; AddEvents(); }
public CentralPanel(string name) { this.Orientation = Orientation.Vertical; this.Width = Dimensions.GetWidth() * 0.9; this.Height = Dimensions.GetHeight(); this.Background = Palette2.GetColor(Palette2.LIGHT_GRAY); _headerPanel = new HeaderPanel(); _contentPanel = new ContentPanel(name, _headerPanel); _eventC = new EventCoordinator(_headerPanel, _contentPanel); this.Children.Add(_headerPanel); this.Children.Add(_contentPanel); }