示例#1
0
 private void SubTaskList_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         Tasks    task   = Currenttask.subTasks[SubTaskList.SelectedItems[0].Index];
         ViewTask viewer = new ViewTask();
         viewer.show(task, Currentunit, Currentassignment);
     }
     catch { }
     UpdateTaskView();
 }
示例#2
0
 private void addnewtask_Click(object sender, EventArgs e)
 {
     try
     {
         Tasks    task   = Utils.GetNextEmptyTask(Currenttask.subTasks);
         ViewTask viewer = new ViewTask();
         viewer.show(task, Currentunit, Currentassignment);
     }
     catch
     {
     }
     UpdateTaskView();
 }