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

            WorkTaskList.Add(newTask);

            NewWorkTaskTitle       = string.Empty;
            NewWorkTaskDescription = string.Empty;
        }
예제 #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));
        }