private void AddNewTask() { var newTask = new WorkTaskViewModel { Title = NewWorkTaskTitle, Description = NewWorkTaskDescription, CreateDate = DateTime.Now }; WorkTaskList.Add(newTask); NewWorkTaskTitle = string.Empty; NewWorkTaskDescription = string.Empty; }
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)); }