private void btnUpdateTaskMenu_Click(object sender, EventArgs e) { ToolStripDropDownItem toolStripDropDownItem = sender as ToolStripDropDownItem; AddTaskForm addTaskForm = new AddTaskForm(Convert.ToInt32(toolStripDropDownItem.Name.ToString()), projectID, Convert.ToInt32(toolStripDropDownItem.Tag.ToString())); addTaskForm.ShowDialog(); if (addTaskForm.doRefresh) { LoadTaskStatusToFlowLayout(projectID); } }
private void btnTask_Click(object sender, EventArgs e) { MetroButton btn = sender as MetroButton; AddTaskForm addTaskForm = new AddTaskForm(Convert.ToInt32(btn.Tag.ToString()), projectID, Convert.ToInt32(btn.Name)); addTaskForm.ShowDialog(); if (addTaskForm.doRefresh) { LoadTaskStatusToFlowLayout(projectID); } }
private void AddTask_Click(object sender, EventArgs e) { AddTaskForm addTask = new AddTaskForm(); addTask.ShowDialog(); }