public SellForm(ref Game game_) { InitializeComponent(); this.game = game_; foreach (Player player in game.players) { if (player.name != game.GetCurrPlayer().name) listBoxPlayers.Items.Add(player.name); } foreach (Space s in game.board) { if (s.GetType() == typeof(Property)) { Property p = (Property)s; if (p.owner == game.GetCurrPlayer().name) listBoxProperty.Items.Add(p.name); } } }