예제 #1
0
        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);
        }
예제 #2
0
 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();
 }
예제 #3
0
 private void SetCurrentTask(TaimTask task)
 {
     currentTask = task;
     UpdateTaskView();
 }