private void cb_AccountTypeName_SelectedIndexChanged(object sender, EventArgs e) { SearchForGivenAccountNumber(); if (cb_AccountTypeName.Text == "<new>") { AccountTypes accType = new AccountTypes(); accType.ShowDialog(); cb_AccountTypeName.Items.Clear(); adaptertbAccountTypes.Fill(dbAccountingProjectDS.GLAccountTypes); cb_AccountTypeName = GeneralFunctions.FillComboBox(dbAccountingProjectDS.GLAccountTypes, cb_AccountTypeName, "AccountTypeName", "AccountTypeID"); } if (cb_AccountTypeName.Text == "Any Type") { cb_AccountTypeName.SelectedIndex = -1; SearchForGivenAccountNumber(); } }
private void cb_AccountType_SelectedIndexChanged(object sender, EventArgs e) { try { SearchForGivenAccountNumber(); if (cb_AccountType.Text == "<new>") { AccountTypes at = new AccountTypes(); at.ShowDialog(); cb_AccountType.Items.Clear(); adaptertbAccountTypes.Fill(dbAccountingProjectDS.GLAccountTypes); cb_AccountType = GeneralFunctions.FillComboBox(dbAccountingProjectDS.GLAccountTypes, cb_AccountType, "AccountTypeName", "AccountTypeID"); } if (cb_AccountType.Text == "Any Type") { cb_AccountType.SelectedIndex = 0; SearchForGivenAccountNumber(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "General Ledger"); } }
private void accountTypeToolStripMenuItem_Click(object sender, EventArgs e) { AccountTypes accountTypes = new AccountTypes(); accountTypes.ShowDialog(); }
private void butAccountType_Click(object sender, EventArgs e) { AccountTypes accountstype = new AccountTypes(); accountstype.ShowDialog(); }