private void btn_Placar_Click(object sender, EventArgs e) { Frm_Rank rank = new Frm_Rank(); rank.Visible = true; rank.btn_Gravar.Enabled = false; rank.btn_Restart.Enabled = false; rank.textBox1.Enabled = false; rank.LoadRank(); }
public void End() { Frm_Rank over = new Frm_Rank { Visible = true }; over.textBox2.Text = pontos.ToString(); over.btn_Back.Visible = false; over.lbl_Rank.Text = "GAME OVER"; paused = true; }
public void Form1_Load_1(object sender, EventArgs e) { this.DoubleBuffered = true; this.Paint += new PaintEventHandler(GameLoop); t = new Timer(); t.Interval = 10; t.Tick += new EventHandler(t_Ticket); t.Start(); Frm_Rank rank = new Frm_Rank(); rank.Form1_Load(sender, e); }