public bool Init(DeckModel detailDeck) { List <ShipModel> list = new List <ShipModel>(detailDeck.GetShips(this._listShipBanners.get_Count())); int cnt = 0; list.ForEach(delegate(ShipModel x) { if (x != null) { this._listShipBanners.get_Item(cnt).SetShipData(x, detailDeck.GetShipIndex(x.MemId) + 1); } else { this._listShipBanners.get_Item(cnt).SetShipData(x, -1); } cnt++; }); return(false); }