public void LoadJob(int jobID) { JobModel = RFRepo.GetJob(jobID); RaisePropertyChanged("JobModel"); Refresh(); if (SelectedStatus != null) { SelectedStatus = RFRepo.GetStatusType(jobModel.StatusID); } }
private void btnLabor_Click(object sender, RoutedEventArgs e) { MainWindow.PageControl.SelectedIndex = AddLaborPage.ID; AddLaborPage._viewModel.SelectedJob = RFRepo.GetJob(_viewModel.JobModel.ID).Name; }