private void Create_Room_btn_Click(object sender, EventArgs e) { var name = Name_tb.Text; if (!string.IsNullOrEmpty(name)) { label3.Text = ""; var gameOptionsForm = new GameOptionsForm(); gameOptionsForm.ShowDialog(); if (gameOptionsForm.ok) { clientEngine.CreateGame(gameOptionsForm.gameSetings, name); } else { return; } } else { label3.Text = "Укажите ваше имя"; } }