Exemple #1
0
        private void agregarLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            EstudianteForm myForm = new EstudianteForm();

            myForm.Alumno = null;
            myForm.ShowDialog();
            if (myForm.DialogResult.Equals(DialogResult.OK))
            {
                this.EstudianteToDataTable(myForm.Alumno);
                this.alumnosDataGridView.Focus();
            }
        }
Exemple #2
0
        private void alumnosDataGridView_DoubleClick(object sender, EventArgs e)
        {
            if (this.alumnosDataGridView.Rows.Count.Equals(0))
            {
                return;
            }
            DataGridViewRow myRow = this.alumnosDataGridView.CurrentRow;

            if (myRow == null)
            {
                return;
            }
            EstudianteForm myForm = new EstudianteForm();

            myForm.Alumno = this.DataTableToEstudiante(myRow);
            myForm.ShowDialog();
        }