Exemplo n.º 1
0
        private void btnAGREGAR2_Click(object sender, EventArgs e)
        {
            MATERIALES.CLASE1 frm = new MATERIALES.CLASE1(new MODELO.Clase(), "A");

            DialogResult dr = frm.ShowDialog();

            if (dr == DialogResult.OK)
            {
                ARMO_GRILLA();
            }
        }
Exemplo n.º 2
0
        private void btnCONSULTAR_Click(object sender, EventArgs e)
        {
            if (dgvCIUDADES.CurrentRow == null)
            {
                MessageBox.Show("Debe seleccionar una clase");
                return;
            }
            MODELO.Clase      oClase = (MODELO.Clase)dgvCIUDADES.CurrentRow.DataBoundItem;
            MATERIALES.CLASE1 frm    = new MATERIALES.CLASE1(oClase, "C");
            DialogResult      dr     = frm.ShowDialog();

            if (dr == DialogResult.OK)
            {
                ARMO_GRILLA();
            }
        }