public Homework(Homework cloneOf) { Course = cloneOf.Course; Guid = cloneOf.Guid; DueDate = cloneOf.DueDate; Summary = cloneOf.Summary; Completed = cloneOf.Completed; }
void EditHomeWorkHandler(Guid obj) { TempHomework = new Homework(HomeworkList.First(hw => hw.Guid == obj)); TempHomework.PropertyChanged += TempHomework_PropertyChanged; IsEditOpen = Visibility.Visible; }
void CreateHomeworkHandler() { IsEditOpen = Visibility.Visible; TempHomework = new Homework() { DueDate = DateTime.Today }; TempHomework.PropertyChanged += TempHomework_PropertyChanged; }