private void ShowData() { try { ContractorCollection myContractors = new ContractorCollection(); lvContractors.DataContext = myContractors; } catch (Exception ex) { throw ex; } }
private void btnFindContractor_Click(object sender, RoutedEventArgs e) { try { JobRequest selectJob = (JobRequest)lvAssignJob.SelectedItem; ContractorCollection skillCons = new ContractorCollection(selectJob.SkillID); lvAssignContractor.ItemsSource = skillCons; } catch (Exception ex) { MessageBox.Show(ex.Message); } }