public CourseTypeViewModel(CoursePeriodModel period, CourseTypeModel type) { this.TypeId = type.Id; this.TypeName = type.TypeName; this.periodParent = period; }
public ParticipantPeriodViewModel(ParticipantModel participant, CoursePeriodModel period) { this.PeriodId = period.Id; this.PeriodName = period.PeriodName; this.participantParent = participant; }
private void AddNewCoursePeriod() { this.AllCoursePeriods.Add(new CoursePeriodViewModel(CoursePeriodModel.CreateNewCoursePeriod())); Workspace.RegisterDataChanged(); SelectedIndex = this.AllCoursePeriods.Count - 1; }
public CoursePeriodViewModel(CoursePeriodModel storageCoursePeriod) { this.storageCoursePeriod = storageCoursePeriod; this.PropertyChanged += CoursePeriodViewModel_PropertyChanged; }