示例#1
0
        public void consultaColores()
        {
            ColoresDAO Colores_DAO = new ColoresDAO();

            try
            {
                DataTable dt = Colores_DAO.LoadColores();
                DgvCatalogos.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show("" + ex);
            }
        }
示例#2
0
 public void newColor()
 {
     ColoresDTO proy_dto = new ColoresDTO();
     proy_dto.color = txtNuevo.Text;
     try
     {
         ColoresDAO Colores_DAO = new ColoresDAO();
         Colores_DAO.newColor(proy_dto);
     }
     catch (Exception ex)
     {
         MessageBox.Show("" + ex);
     }
 }