Example #1
0
        private void TsbEditar_Click(object sender, EventArgs e)
        {
            int    ID     = (int)dgvDocCur.SelectedRows[0].Cells["ID"].Value;
            int    legajo = (int)dgvDocCur.SelectedRows[0].Cells["Legajo"].Value;
            string cargo  = (string)dgvDocCur.SelectedRows[0].Cells["Cargo"].Value;
            Docentes_CursosDesktop formCurDesk = new Docentes_CursosDesktop(legajo, cargo, ID, CursoActual, ModoForm.Modificacion);

            formCurDesk.ShowDialog();
            this.Listar();
        }
Example #2
0
        private void TsbNuevo_Click(object sender, EventArgs e)
        {
            this.Enabled = false;
            Docentes_CursosDesktop formCurDesk = new Docentes_CursosDesktop(CursoActual);

            formCurDesk.ShowDialog();
            this.Enabled = true;
            this.Focus();
            this.Listar();
        }