private void menuItemHorario_Click(object sender, EventArgs e) { if (horarios == null) { horarios = new frmHorarios(); horarios.MdiParent = this; horarios.Show(); } else { horarios.Activate(); } }
private void btnHorario_Click(object sender, System.EventArgs e) { frmHorarios janela = new frmHorarios(this.context); janela.Show(); }