private void Form1_Load(object sender, EventArgs e) { //Instanciando los user control game = new Game(); top = new Top10(); game.Dock = DockStyle.Fill; game.Width = Width; game.Height = Height; //seteando medidas top top.Width = Width; game.Height = Height; top.Dock = DockStyle.Fill; game.FinishedGame = () => { game = null; game = new Game(); MessageBox.Show("Has perdido"); game.Hide(); tableLayoutPanel1.Show(); }; //Agregando el user del top 10 top.Dock = DockStyle.Fill; top.Width = Width; top.Height = Height; }
private void button1_Click(object sender, EventArgs e) { Top10 top10 = new Top10(); FormMenu menu = new FormMenu(); top10.Hide(); menu.Show(); }
private void Form1_Load(object sender, EventArgs e) { //Instanciando los user control game = new Game(); top = new Top10(); game.Dock = DockStyle.Fill; top.Dock = DockStyle.Fill; game.Width = Width; game.Height = Height; }
//Ingresar al listado top 10 private void btnTop10_Click(object sender, EventArgs e) { var Top = new Top10(); Top.Show(); }