private void UpdateCourse(SimpleEditableCourseStat source, CourseStat target) { target.CourseId = source.CourseId; target.TeeMarkerId = source.TeeMarkerId; target.Slope = source.Slope; target.Rating = source.Rating; target.Yardage = source.Yardage; }
internal void SetCourse(CourseStat courseStat) { _editingCourseStat = courseStat; if (CourseStat != null) { CourseStat.ErrorsChanged -= RaiseCanExecuteChanged; } CourseStat = new SimpleEditableCourseStat(); CopyCourseStat(courseStat, CourseStat); }
private void CopyCourseStat(CourseStat source, SimpleEditableCourseStat target) { target.CourseId = source.CourseId; if (EditMode) { target.Yardage = source.Yardage; target.TeeMarkerId = source.TeeMarkerId; target.Rating = source.Rating; target.Slope = source.Slope; } }