public NewTask() { InitializeComponent(); dataFolder = new DirectoryInfo(Path.Combine(Settings.Default.DataFolder, @"ProjectExplorer\")); sprintXmlFile = Path.Combine(dataFolder.FullName, "sprints.xml"); todoXmlFile = Path.Combine(dataFolder.FullName, "todos.xml"); projectXmlFile = Path.Combine(dataFolder.FullName, "projects.xml"); sprintBindingSource.DataSource = SortableBindingListHelper.GetBindingListFromXmlFile <Sprint>(sprintXmlFile); todoBindingSource.DataSource = SortableBindingListHelper.GetBindingListFromXmlFile <Todo>(todoXmlFile); projectBindingSource.DataSource = SortableBindingListHelper.GetBindingListFromXmlFile <Project>(projectXmlFile); projectIdList = new List <string>(); foreach (object obj in projectBindingSource.List) { projectIdList.Add(((Project)obj).Id); } sprintIdList = new List <string>(); foreach (object obj in sprintBindingSource.List) { sprintIdList.Add(((Sprint)obj).Id); } spelledMultilineTextbox1.AddKeywords(projectIdList, sprintIdList); this.BackColor = BlackTheme.ColorDarkGray; this.ForeColor = BlackTheme.ColorText; BlackTheme.ApplyTheme(this); }
public ITheme GetThemeObject(string themeName) { ITheme themeObject = null; Colors selectedTheme; Enum.TryParse <Colors>(themeName.ToLower(), out selectedTheme); switch (selectedTheme) { case Colors.black: themeObject = new BlackTheme(); break; case Colors.blue: themeObject = new BlueTheme(); break; case Colors.green: themeObject = new GreenTheme(); break; case Colors.red: themeObject = new RedTheme(); break; default: themeObject = new BlackTheme(); break; } return(themeObject); }
public ReportScreen(List<Todo> tasks, SortableBindingList<Project> projects) { InitializeComponent(); this.projects = projects; CheckedListBox checkedListBox = new CheckedListBox(); checkedListBox.BorderStyle = BorderStyle.None; checkedListBox.BackColor = BlackTheme.ColorDarkGray; checkedListBox.ForeColor = BlackTheme.ColorText; checkedListBox.Dock = DockStyle.Fill; checkedListBox.DataSource = tasks; checkedListBox.DisplayMember = "ShortDescription"; splitContainer1.Panel2.Controls.Clear(); Button selectAllButton = new Button(); selectAllButton.Text = "Select All"; selectAllButton.Height = 29; selectAllButton.FlatStyle = FlatStyle.Flat; selectAllButton.Click += selectAllButton_Click; selectAllButton.Dock = DockStyle.Top; selectAllButton.ForeColor = Color.White; Button deselectAllButton = new Button(); deselectAllButton.Text = "Deselect All"; deselectAllButton.Height = 29; deselectAllButton.FlatStyle = FlatStyle.Flat; deselectAllButton.Click += deselectAllButton_Click; deselectAllButton.Dock = DockStyle.Top; deselectAllButton.ForeColor = Color.White; splitContainer1.Panel2.Controls.Add(selectAllButton); splitContainer1.Panel2.Controls.Add(deselectAllButton); splitContainer1.Panel2.Controls.Add(checkedListBox); BlackTheme.ApplyTheme(this); }
public EditTaskDialog(object projectDataSource, object sprintDataSource, object taskDataSource) { InitializeComponent(); taskEditor1.SetBindingSources(projectDataSource, sprintDataSource, taskDataSource); this.BackColor = BlackTheme.ColorDarkGray; this.ForeColor = BlackTheme.ColorText; BlackTheme.ApplyTheme(this); }
public AddNewTasks() { InitializeComponent(); this.BackColor = BlackTheme.ColorDarkGray; this.ForeColor = BlackTheme.ColorText; BlackTheme.ApplyTheme(this); }
public ReportScreen(Dictionary<Sprint, List<Todo>> sprintTaskList, SortableBindingList<Project> projects) { InitializeComponent(); this.sprintTaskList = sprintTaskList; this.projects = projects; //this.checkedListBoxFilteredTasksInStatus.DataSource = tasks; //this.checkedListBoxFilteredTasksInStatus.DisplayMember = "ShortDescription"; splitContainer1.Panel2.Controls.Clear(); Button selectAllButton = new Button(); selectAllButton.Text = "Select All"; selectAllButton.Height = 29; selectAllButton.FlatStyle = FlatStyle.Flat; selectAllButton.Click += selectAllButton_Click; selectAllButton.Dock = DockStyle.Top; selectAllButton.ForeColor = Color.White; Button deselectAllButton = new Button(); deselectAllButton.Text = "Deselect All"; deselectAllButton.Height = 29; deselectAllButton.FlatStyle = FlatStyle.Flat; deselectAllButton.Click += deselectAllButton_Click; deselectAllButton.Dock = DockStyle.Top; deselectAllButton.ForeColor = Color.White; splitContainer1.Panel2.Controls.Add(selectAllButton); splitContainer1.Panel2.Controls.Add(deselectAllButton); foreach (KeyValuePair<Sprint, List<Todo>> st in sprintTaskList) { CheckedListBox checkedListBox = new CheckedListBox(); checkedListBox.BorderStyle = BorderStyle.None; checkedListBox.BackColor = BlackTheme.ColorDarkGray; checkedListBox.ForeColor = BlackTheme.ColorText; checkedListBox.Dock = DockStyle.Top; checkedListBox.Height = 300; checkedListBox.DataSource = st.Value; checkedListBox.Tag = st.Key; checkedListBox.DisplayMember = "ShortDescription"; Label sprintLabel = new Label(); sprintLabel.Text = st.Key.ShortDescription; sprintLabel.ForeColor = BlackTheme.ColorTextNotifyBlue; sprintLabel.Padding = new System.Windows.Forms.Padding(0, 10, 0, 5); sprintLabel.AutoSize = false; sprintLabel.Height = 40; sprintLabel.Dock = DockStyle.Top; splitContainer1.Panel2.Controls.Add(sprintLabel); sprintLabel.BringToFront(); splitContainer1.Panel2.Controls.Add(checkedListBox); checkedListBox.BringToFront(); } RenderSprintTodoList(sprintTaskList); BlackTheme.ApplyTheme(this); }
private void RenderSprintTodoList(Dictionary<Sprint, List<Todo>> sprintTaskList) { StringBuilder report = new StringBuilder(); foreach (KeyValuePair<Sprint, List<Todo>> sprintTodos in sprintTaskList) { Dictionary<Status, int> tasksInStatus = new Dictionary<Status, int>(); AppendLine(string.Format("Sprint: {0}", sprintTodos.Key.ShortSummary), BlackTheme.mGreenLight1); if (sprintTodos.Key.Kanban != null) { Status lastStatus = Status.Unknown; foreach (Todo todo in sprintTodos.Value) { if (todo.Status != lastStatus) { lastStatus = todo.Status; if (checkBoxEmptyLines.Checked) { AppendLine("", BlackTheme.ColorDarkGray); } AppendLine(string.Format("Status: {0}", todo.Status.ToString()), BlackTheme.mGreenLight2); } renderTask(todo); if (!tasksInStatus.ContainsKey(todo.Status)) { tasksInStatus.Add(todo.Status, 1); } else { tasksInStatus[todo.Status]++; } } if (checkBoxEmptyLines.Checked) { AppendLine(string.Format(""), BlackTheme.ColorDarkGray); } if (checkBoxHeaders.Checked) { AppendLine("Sprint Summary: ", BlackTheme.mGreenLight2); } foreach (KeyValuePair<Status, int> item in tasksInStatus) { AppendLine(string.Format("{0}: {1} Tasks", item.Key.ToString(), item.Value), BlackTheme.mGreenLight2); } if (checkBoxEmptyLines.Checked) { AppendLine(string.Format(""), BlackTheme.ColorDarkGray); AppendLine(string.Format(""), BlackTheme.ColorDarkGray); } } } BlackTheme.ApplyTheme(this); }
public TasksGridPanel() { InitializeComponent(); // Init base panel panelTaskDetails.Dock = DockStyle.Fill; panelTaskDetails.BringToFront(); taskSearchPanel1.Grid.CellClick += Grid_CellClick; taskSearchPanel1.TodoBindingSource.CurrentChanged += TodoBindingSource_CurrentItemChanged; todoBindingSource.CurrentItemChanged += TodoBindingSource_CurrentItemChanged1; BlackTheme.ApplyTheme(this); }
public ConfirmTasks() { InitializeComponent(); this.BackColor = BlackTheme.ColorDarkGray; this.ForeColor = BlackTheme.ColorText; this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 19F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1087, 690); this.Font = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.Size = new System.Drawing.Size(Convert.ToInt32(SystemParameters.PrimaryScreenWidth) - 200, Convert.ToInt32(SystemParameters.PrimaryScreenHeight) - 200); this.Location = new System.Drawing.Point(100, 100); // Apply Black Theme BlackTheme.ApplyTheme(this); }
private void SetBlackTheme() { this.BackColor = BlackTheme.ColorDarkGray; this.ForeColor = BlackTheme.ColorText; // Apply Black Theme BlackTheme.ApplyTheme(this); foreach (var control in toolStripMain.Items) { if (control.GetType() == typeof(ToolStripButton)) { ToolStripButton button = (ToolStripButton)control; button.ForeColor = Settings.Default.foreColor; } } // Manualy fixes statusStrip1.BackColor = BlackTheme.ColorDarkGray; addTasks.Dock = DockStyle.Fill; taskPlanningPanel1.Dock = DockStyle.Fill; sprintGridPanel1.Dock = DockStyle.Fill; tasksGridPanel1.Dock = DockStyle.Fill; //toolStripButtonTask.Checked = true; projectGridPanel1.Dock = DockStyle.Fill; //projectsGridPanel1.BringToFront(); //toolStripButtonProject.Checked = true; sprintKanbanPanel1.Dock = DockStyle.Fill; sprintKanbanPanel1.BringToFront(); toolStripButtonKanban.Checked = true; toolStripMain.Height = 95; toolStripMain.Padding = new Padding(5, 5, 15, 0); //toolStripMain.BackColor = BlackTheme.ColorDarkGray; }
public CommitedFilesSelection(List <CommitInfo> commits) { InitializeComponent(); BlackTheme.ApplyTheme(this); dataGridView1.DataSource = commits; }
public CommitedFilesSelection() { InitializeComponent(); BlackTheme.ApplyTheme(this); }