private void removeThisStoryToolStripMenuItem_Click(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem; ContextMenuStrip owner = menuItem.Owner as ContextMenuStrip; TextBox textBox = owner.SourceControl as TextBox; JoScrum.RemoveStory(textBox.Name); }
private void removeThisTaskToolStripMenuItem_Click(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem; ContextMenuStrip owner = menuItem.Owner as ContextMenuStrip; TextBox textBox = owner.SourceControl as TextBox; Panel panel = textBox.Parent as Panel; JoScrum.RemoveTask(panel.Name, textBox.Name); }
private void Form1_Load(object sender, EventArgs e) { materialLabel1.ForeColor = Color.White; materialLabel2.ForeColor = Color.White; materialLabel3.ForeColor = Color.White; materialLabel4.ForeColor = Color.White; materialLabel5.ForeColor = Color.Gainsboro; panel1.SendToBack(); JoScrum.UpdateDatabase(); }
private void viewToolStripMenuItem_Click(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem; ContextMenuStrip owner = menuItem.Owner as ContextMenuStrip; TextBox textBox = owner.SourceControl as TextBox; Panel panel = textBox.Parent as Panel; StoryTask task = JoScrum.GetTask(panel.Name, textBox.Name); AddTaskForm addTaskForm = new AddTaskForm(task); addTaskForm.ShowDialog(); }
private void moveThisTaskStripMenuItem_Click(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem; TextBox textBox = movingTextBox; Panel panel = textBox.Parent as Panel; if (menuItem.Text.Contains("Not Started")) { JoScrum.MoveToTask(panel.Name, textBox.Name, TaskType.NOT_STARTED); textBox.BackColor = Color.LightGray; } else if (menuItem.Text.Contains("In Progress")) { JoScrum.MoveToTask(panel.Name, textBox.Name, TaskType.IN_PROGRESS); textBox.BackColor = Color.Yellow; } else if (menuItem.Text.Contains("Done")) { JoScrum.MoveToTask(panel.Name, textBox.Name, TaskType.DONE); textBox.BackColor = Color.LimeGreen; } }
private void btnAddStory_Click(object sender, EventArgs e) { JoScrum.AddStory(txtStory.Text); this.Hide(); }