示例#1
0
 private void mnuTasksAdd_Click(object sender, EventArgs e)
 {
     using (NewTaskDialog ntd = new NewTaskDialog())
     {
         ntd.StartPosition = FormStartPosition.CenterParent;
         if (ntd.ShowDialog() == DialogResult.OK)
         {
             AddNewTaskToCurrentTask(ntd.TaskLabel, ntd.TaskDescription);
         }
     }
 }
示例#2
0
 private void mnuTasksAdd_Click(object sender, EventArgs e)
 {
     using (NewTaskDialog ntd = new NewTaskDialog())
     {
         ntd.StartPosition = FormStartPosition.CenterParent;
         if (ntd.ShowDialog() == DialogResult.OK)
         {
             AddNewTaskToCurrentTask(ntd.TaskLabel, ntd.TaskDescription);
         }
     }
 }