private void DestroyButtonClick(object sender, EventArgs e) { var room = GetRoom(); if (room == null) { return; } if (MessageBox.Show(this, string.Format("Удалить комнату \"{0}\"?", room.Name), "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } engine.DestroyRoom(room.Name); UpdateRooms(); }