public void ShowHostDialog(GameInfo filter) { using (var dialog = new HostDialog(filter)) { if (dialog.ShowDialog() != DialogResult.OK) { return; } ActionHandler.StopBattle(); ActionHandler.HostBattle(title: dialog.BattleTitle, password: dialog.Password, mode: dialog.Mode); } }