Пример #1
0
 private void cboSalesman_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cboSalesman.SelectedIndex >= 0)
     {
         var salesman = salesmanRepository.GetByName(cboSalesman.Text);
         txtSalesmanId.Text = salesman.ID.ToString();
     }
 }