Exemplo n.º 1
0
        public void detCelda(string celda)
        {
            CeldaCONTROL celdas;

            switch (celda)
            {
            case "A1":
                try
                {
                    celdas = new CeldaCONTROL();
                    DataTable dt = new DataTable();
                    dt = celdas.GetCelda();

                    txtClaveC.Text  = dt.Rows[0]["celdaID"].ToString();
                    txtTurno.Text   = dt.Rows[0]["turno"].ToString();
                    mtbFechain.Text = dt.Rows[0]["fecha_ingreso"].ToString();
                    mtbFechaal.Text = dt.Rows[0]["Fecha_alta"].ToString();
                    int ID = Convert.ToInt32(dt.Rows[0]["Mascotas_mascotaID"].ToString());
                    verimagen(ID);
                }
                catch (Exception)
                {
                    MessageBox.Show("La operacion no se pudo realizar la celda se encuentra vacía", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                break;
            }
        }
Exemplo n.º 2
0
 public void Listar()
 {
     oceldactrl         = new CeldaCONTROL();
     gvCelda.DataSource = oceldactrl.GetCelda();
 }