コード例 #1
0
 private void actualizarMaestroToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form modificarmaestro = new modificarmaestro();
     modificarmaestro.Show();
     modificarmaestro.MdiParent = this;
     modificarmaestro.WindowState = FormWindowState.Maximized;
     modificarmaestro.BringToFront();
 }
コード例 #2
0
        private void buscarmaestroDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (buscarmaestroDataGridView.Rows[e.RowIndex].Cells[0].Selected)
            {

                Idmaestro = buscarmaestroDataGridView.Rows[e.RowIndex].Cells[0].Value.ToString();
                Form modificarmaestro = new modificarmaestro();
                modificarmaestro.Show();
                this.Hide();
            }
        }