private void newToolStripMenuItem_Click(object sender, EventArgs e) { StopTaskTimer(); TaimTask newTask = new TaimTask("enter new title", "enter new description", "enter new estimation"); taskList.Add(newTask); SetCurrentTask(newTask); }
private void LoadCurrentTask() { if (taskList.Count == 0) { currentTask = new TaimTask("enter new task", "new description", "new est"); taskList.Add(currentTask); } else { currentTask = taskList[0]; } UpdateTaskView(); }
private void SetCurrentTask(TaimTask task) { currentTask = task; UpdateTaskView(); }