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(); }
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(); }