Exemple #1
0
        private void addTaskButton_Click(object sender, EventArgs e)
        {
            AddTaskForm settingsForm = new AddTaskForm(this);

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

            addTask.ShowDialog();
        }