예제 #1
0
        private void BtnGuardar_Click(object sender, EventArgs e)
        {
            CapaNegocio.CNApoderado obj = new CapaNegocio.CNApoderado();
            FrmIEAlumno             al  = new FrmIEAlumno();

            al.lblOpe.Text = "Nuevo";
            al.Show();
        }
예제 #2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            FrmIEAlumno obj = new FrmIEAlumno();

            obj.lblTitulo.Text  = "Editar Alumno";
            obj.lblOpe.Text     = "Editar";
            obj.btnGuardar.Text = "Modificar";
            obj.lblCod.Text     = GridLisAlum.CurrentRow.Cells[1].Value.ToString();
            obj.ShowDialog();
        }
예제 #3
0
        private void BtnGuardar_Click_1(object sender, EventArgs e)
        {
            FrmIEAlumno obj = new FrmIEAlumno();

            CapaNegocio.CNApoderado apo = new CapaNegocio.CNApoderado();
            string sql = apo.IngApode(txtNom.Text, txtApe.Text, cboParen.SelectedItem.ToString(), txtDni.Text, Fecha.Text, txtCel.Text, cboEstado.SelectedItem.ToString(), txtDirrecion.Text, cboSexo.Text.Substring(0, 1), Convert.ToInt32(cboDistrito.SelectedValue));

            obj.lblOpe.Text = "Nuevo";
            obj.Show();
            this.Hide();
        }