private void SessionViewDetail_Loaded(object sender, RoutedEventArgs e) { if (FormMode != FormModes.New) { SessionEntity = SessionRepo.FindByID(_sessionID); } }