private void playBut_MouseClick(object sender, MouseEventArgs e) { Game gf = new Game(60, 30, 30); this.Hide(); gf.Show(); }
private void StartBtn_Click(object sender, EventArgs e) { if (HeightCmb.Text != string.Empty && SpeedCmb.Text != string.Empty && WidthCmb.Text != string.Empty && UsernameTb.Text != string.Empty) { if (radioButton1.Checked) { Settings.BrushCol = Color.White; Settings.BrushCol2 = Color.Firebrick; Settings.BrushCol3 = Color.Firebrick; } else if (radioButton2.Checked) { Settings.BrushCol = Color.White; Settings.BrushCol2 = Color.White; Settings.BrushCol3 = Color.White; } Settings.Width = Int32.Parse(WidthCmb.Text); Settings.Height = Int32.Parse(HeightCmb.Text); Settings.Speed = Int32.Parse(SpeedCmb.Text); Settings.Username = UsernameTb.Text; hasSelected = true; this.Hide(); Game GameForm = new Game(this); GameForm.Show(); } }