private void btnFeriados_Click(object sender, EventArgs e) { Feriados formulario = new Feriados(); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.ShowDialog(); ActualizarFeriados(); Refresh(); }
private void tsbFeriados_Click(object sender, EventArgs e) { Feriados formulario = new Feriados(); formulario.MdiParent = this; formulario.StartPosition = FormStartPosition.Manual; formulario.Location = new Point((this.Width / 2) - (formulario.Width / 2), tbcMenuppal.Location.Y + altura); formulario.Show(); }