private void ButtonProfessor_Click(object sender, EventArgs e) { this.Hide(); Form f = new FormProfessor(); f.Closed += (s, args) => this.Close(); f.Show(); }
private void ToolStripMenuItem1_Click(object sender, EventArgs e) { this.Hide(); Form f = new FormProfessor(); f.Closed += (s, args) => this.Close(); f.Show(); }
}//Chamada das forms que irei usar neste script private void ButtonBackP3_Click(object sender, EventArgs e) { this.Hide(); Form f = new FormProfessor(); f.Closed += (s, args) => this.Close(); f.Show(); }//Comando para botão voltar, voltar para form Professor