Exemplo n.º 1
0
        public void CustomerAccountList(Form _MdiForm)
        {
            CustomerAccountList Help = new CustomerAccountList();

            Help.MdiParent = _MdiForm;
            Help.Show();
        }
 private IEnumerable <CustomerAccount> GetActiveCustomers()
 {
     try {
         List <CustomerAccount> CustomerAccountList = null;
         using (DbCommand dbcmdCustomerAccount = _Database.GetStoredProcCommand(PROC_CUSTOMERACCOUNT_GETALL)) {
             using (IDataReader reader = _Database.ExecuteReader(dbcmdCustomerAccount)) {
                 if (CustomerAccountList == null)
                 {
                     CustomerAccountList = new List <CustomerAccount>();
                 }
                 CustomerAccountList.Add(Mapper(reader));
             }
         }
         return(CustomerAccountList);
     }
     catch (Exception ex) {
         throw ex;
     }
 }