private void cb_VendorCategory_SelectedIndexChanged(object sender, EventArgs e) { SearchForGivenVendor(); if (cb_VendorCategory.Text == "<new>") { VendorsCategories at = new VendorsCategories(); at.ShowDialog(); cb_VendorCategory.Items.Clear(); adaptertbVendorCategory.Fill(dbAccountingProjectDS.APVendorCategory); cb_VendorCategory = GeneralFunctions.FillComboBox(dbAccountingProjectDS.APVendorCategory, cb_VendorCategory, "CategoryCode", "CategoryID"); } if (cb_VendorCategory.Text == "Any Type") { cb_VendorCategory.SelectedIndex = -1; SearchForGivenVendor(); } }
private void vendorsCategoriesToolStripMenuItem_Click(object sender, EventArgs e) { VendorsCategories frm = new VendorsCategories(); frm.ShowDialog(); }
private void btnVendorCategories_Click(object sender, EventArgs e) { VendorsCategories vendorcategories = new VendorsCategories(); vendorcategories.ShowDialog(); }