public NewTaskPopUp(double width, double height, string content, string projectName, bool isAdvanced, ContentPanel contentPanel) : base(width, height, content) { this.Background = ThemeSelector.GetPopUpBackground(); _contentPanel = contentPanel; _block.Text = "New " + content; _section = content; _projectName = projectName; SetUpSeparator(); SetUpNameBlock(); SetUpNameBox(); SetUpAlertBlock(); SetUpDetailsBlock(); SetUpDetailsBox(); SetUpButtons(); _container.Children.Add(_separator); _container.Children.Add(_nameBlock); _container.Children.Add(_nameBox); _container.Children.Add(_alertBlock); _container.Children.Add(_detailsBlock); _container.Children.Add(_detailsBox); if (!isAdvanced) { _container.Children.Add(_validateButton); _container.Children.Add(_cancelButton); } }//Constructor()
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); }
public NewAdvancedTaskPopUp(double width, double height, string content, string projectName, bool isAdvanced, ContentPanel contentPanel):base(width,height,content,projectName,isAdvanced, contentPanel) { _nameBox.MaxLength = 80; _priorityBlock = new TextBlock(); _priorityBlock.Text = "Priority"; _priorityBlock.Foreground = ThemeSelector.GetBackground(); _priorityBlock.FontFamily = FontProvider._lato; _priorityBlock.FontSize = Responsive.GetButtonTextSize(); _priorityBlock.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; _priorityBlock.Margin = new System.Windows.Thickness(0, 20, 0, 0); _priorityBox = new ComboBox(); _priorityBox.Width = this.Width * 0.4; _priorityBox.FontSize = Responsive.GetComboSize(); _priorityBox.FontFamily = FontProvider._lato; _priorityBox.Items.Add(Priorities.NOT_IMPORTANT); _priorityBox.Items.Add(Priorities.LESS_IMPORTANT); _priorityBox.Items.Add(Priorities.IMPORTANT); _priorityBox.Items.Add(Priorities.MOST_IMPORTANT); _priorityBox.SelectedItem = _priorityBox.Items[2]; _validateButton.MouseDown += _validateButton_MouseDown; _container.Children.Add(_priorityBlock); _container.Children.Add(_priorityBox); _container.Children.Add(_validateButton); _container.Children.Add(_cancelButton); //TreatContent(); //Change header text }
public RightPanelCoordinator(ContentPanel contentP) { _contentPanel = contentP; }