private void addTaskButton_Click(object sender, EventArgs e) { AddTaskForm settingsForm = new AddTaskForm(this); // Show the settings form settingsForm.Show(); }
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 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); } }
public ActionResult Create(AddTaskForm addTaskForm) { return HandleForm(addTaskForm) .WithSuccessResult(this.RedirectToAction(x => x.Index())); }
private void AddTask_Click(object sender, EventArgs e) { AddTaskForm addTask = new AddTaskForm(); addTask.ShowDialog(); }