private void button2_Click_1(object sender, EventArgs e)
        {
            MaestroHorario cerrar = new MaestroHorario();

            cerrar.Show();
            this.Hide();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            MaestroHorario abrir = new MaestroHorario();

            abrir.Show();
            this.Hide();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            connect.Open();
            SqlCommand Comando = connect.CreateCommand();

            Comando.CommandType = CommandType.Text;
            Comando.CommandText = "insert into tblmaestro values('" + txtmnombre.Text + "','" + txtmapellido.Text + "','" + txtdireccion.Text + "','" + mtxtfecha.Text + "','" + cbedad.Text + "','" + cbsexo.Text + "','" + mtxttelefono.Text + "','" + mtxtcelular.Text + "','" + mtxtcedula.Text + "','" + cbCcarrera.Text + "')";
            Comando.ExecuteNonQuery();
            connect.Close();
            MessageBox.Show("Los Datos se han guardado correctamente", "Registro de Maestro", MessageBoxButtons.OK, MessageBoxIcon.Information);
            MaestroHorario abrir = new MaestroHorario();

            abrir.Show();
            this.Hide();
        }