Пример #1
0
 /// <summary>
 /// Function to fill AccountyLedger combobox
 /// </summary>
 public void LedgerComboFill()
 {
     try
     {
         List <DataTable>           ListObj = new List <DataTable>();
         TransactionsGeneralFillBll obj     = new TransactionsGeneralFillBll();
         ListObj = obj.AccountLedgerComboFill();
         DataRow dr = ListObj[0].NewRow();
         dr[0] = 0;
         dr[2] = "All";
         ListObj[0].Rows.InsertAt(dr, 0);
         cmbAccountLedger.DataSource    = ListObj[0];
         cmbAccountLedger.DisplayMember = "ledgerName";
         cmbAccountLedger.ValueMember   = "ledgerId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("RR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }