private void Form1_Load(object sender, EventArgs e) { this.Show(); this.Focus(); Globals.Main = this; Game.Initialize(this); }
private void Form1_Load(object sender, EventArgs e) { FormBorderStyle = FormBorderStyle.None; Size = new Size(Globals.resWidth, Globals.resHeight); FormBorderStyle = FormBorderStyle.Sizable; videoPlayer.uiMode = "none"; videoPlayer.Visible = false; videoPlayer.PlayStateChange += videoPlayer_Finished; videoPlayer.settings.volume = 100; this.Show(); this.Focus(); Location = new Point((Screen.PrimaryScreen.Bounds.Width - Width) / 2, (Screen.PrimaryScreen.Bounds.Height - Height) / 2 - 20); Globals.Main = this; Game.Initialize(this); }