private void AddNewTask()
        {
            var newTask = new WorkTaskViewModel
            {
                Title       = NewWorkTaskTitle,
                Description = NewWorkTaskDescription,
                CreateDate  = DateTime.Now
            };

            WorkTaskList.Add(newTask);

            NewWorkTaskTitle       = string.Empty;
            NewWorkTaskDescription = string.Empty;
        }
Beispiel #2
0
        private void AddNewTask()
        {
            var newTask = new WorkTaskViewModel
            {
                Title       = NewWorkTaskTitle,
                Description = NewWorkTaskDescription,
                CreatedDate = DateTime.Now,
            };

            WorkTaskList.Add(newTask);

            NewWorkTaskTitle       = string.Empty;
            NewWorkTaskDescription = string.Empty;

            OnPropertyChanged(nameof(NewWorkTaskTitle));
            OnPropertyChanged(nameof(NewWorkTaskDescription));
        }