Exemple #1
0
        private void buttonAddTask_Click(object sender, EventArgs e)
        {
            _taskDetailsForm = new TaskDetailsForm(_taskManager.AddTask,
                                                   new Task(monthCalendarChouseDate.SelectionRange.Start));
            _taskDetailsForm.ShowDialog();

            _taskManager.SaveTasks();
            UpdateTaskListView(_taskManager.GetByDate(monthCalendarChouseDate.SelectionStart));
        }
Exemple #2
0
        private void dataGridViewTasks_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var taskViewForm = new TaskDetailsForm(_taskManager.EditTask,
                                                   _taskManager.Get()[e.RowIndex]);

            taskViewForm.ShowDialog();

            _taskManager.SaveTasks();
            UpdateTaskListView(_taskManager.GetByDate(monthCalendarChouseDate.SelectionStart));
        }