private void ShowData()
 {
     try
     {
         ContractorCollection myContractors = new ContractorCollection();
         lvContractors.DataContext = myContractors;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 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);
     }
 }