Esempio n. 1
0
 private void companyComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (companyComboBox.SelectedValue.ToString() != null)
     {
         item.CompanyId = Convert.ToInt32(companyComboBox.SelectedValue.ToString());
         categoryComboBox.DataSource = _itemReportManager.LoadCategory(item);
         categoryComboBox.Enabled    = true;
     }
 }
 private void ItemReportForm_Load(object sender, EventArgs e)
 {
     companyComboBox.DataSource  = _itemReportManager.LoadCompany();
     categoryComboBox.DataSource = _itemReportManager.LoadCategory(item);
     // categoryComboBox.Enabled = false;
 }