private void asignaturaToolStripMenuItem_Click(object sender, EventArgs e) { frmAsignatura frm = new frmAsignatura(); frm.StartPosition = FormStartPosition.CenterScreen; frm.MdiParent = this; frm.Show(); }
private void btnModificar_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 1) { Asignatura a = new Asignatura(); a.AsignaturaID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].FormattedValue.ToString()); a = a.Detalle(); frmAsignatura frm = new frmAsignatura(a); frm.ShowDialog(); } }
private void btnNuevo_Click(object sender, EventArgs e) { frmAsignatura frm = new frmAsignatura(); frm.ShowDialog(); }