/// <summary> /// Обработчик нажатия кнопки "Старт". Запускает игру /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnStartGame_Click(object sender, EventArgs e) { Game.ClearResourses(); Form gameForm = new Form { Width = 1024, Height = 768, FormBorderStyle = FormBorderStyle.None, StartPosition = FormStartPosition.CenterScreen }; Game.Init(gameForm); Game.LoadGame(); gameForm.FormClosing += GameForm_FormClosing; gameForm.KeyDown += Game.GameForm_KeyDown; Visible = false; Game.WriteLog("Игра начата"); gameForm.Show(); }