Exemplo n.º 1
0
 private void cb_AccountType_SelectedIndexChanged(object sender, EventArgs e)
 {
     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 = -1;
         SearchForGivenAccountNumber();
     }
 }
Exemplo n.º 2
0
 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");
     }
 }
Exemplo n.º 3
0
        private void accountTypeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AccountTypes accountTypes = new AccountTypes();

            accountTypes.ShowDialog();
        }
Exemplo n.º 4
0
        private void butAccountType_Click(object sender, EventArgs e)
        {
            AccountTypes accountstype = new AccountTypes();

            accountstype.ShowDialog();
        }