private void cb_VendorTerms_SelectedIndexChanged(object sender, EventArgs e) { if (cb_VendorTerms.Text == "<new>") { PaymentTerms payTerm = new PaymentTerms(); payTerm.ShowDialog(); cb_VendorTerms.Items.Clear(); adapterPaymentTerms.Fill(dbAccountingProjectDS.APPaymentTerms); cb_VendorTerms = GeneralFunctions.FillComboBox(dbAccountingProjectDS.APPaymentTerms, cb_VendorTerms, "PaymentTermCode", "PaymentTermCodeID"); } }
private void paymentTermsToolStripMenuItem_Click(object sender, EventArgs e) { PaymentTerms frm = new PaymentTerms(); frm.ShowDialog(); }