private void actualizarMaestroToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form modificarmaestro = new modificarmaestro();
     modificarmaestro.Show();
     modificarmaestro.MdiParent = this;
     modificarmaestro.WindowState = FormWindowState.Maximized;
     modificarmaestro.BringToFront();
 }
        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();
            }
        }