Exemple #1
0
        private void btnAddTask_Click(object sender, RoutedEventArgs e)
        {
            if (!dtDateToShow.SelectedDate.HasValue)
            {
                return;
            }

            TaskDataWindow win = new TaskDataWindow(dtDateToShow.SelectedDate.Value);

            if (win.ShowDialog() == true)
            {
                AddTask(win.SavedTask);
            }
        }
Exemple #2
0
        private void ShowModificationWindow(DateTime date, Task task)
        {
            TaskDataWindow win = new TaskDataWindow(date, task);

            win.ShowDialog();
        }