private void SubjectDetailUserControl_Loaded(object sender, RoutedEventArgs e) { if (FormMode != FormModes.New) { SubjectDetail = _subjectRepository.FindByID(_subjectID); } }