public frmFondo(Form ventana, List <Dictionary <string, object> > lista, string titulo, setString enviar, string tituloMenu) { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; this.Owner = ventana; this.Size = ventana.Size; this.Location = ventana.Location; this.Padding = ventana.Padding; this.lista = lista; this.titulo = titulo; this.enviar = enviar; this.tituloMenu = tituloMenu; this.ShowInTaskbar = false; }
public frmMenu(Form ventana, List <Dictionary <string, object> > lista, string titulo, setString enviar, string tituloMenu) { InitializeComponent(); int width = this.Size.Width; int height = ventana.Size.Height; this.Owner = ventana; int x = ventana.Location.X; int y = ventana.Location.Y; this.Size = new Size(width, height - 100); this.Location = new Point(x + 10, (y + (ventana.Height / 2) - (this.Height / 2))); this.lista = lista; this.titulo = titulo; this.enviar = enviar; this.tituloMenu = tituloMenu; this.ventana = ventana; this.ShowInTaskbar = false; }