// Swap to the next LowerBody. public void NextLowerBody() { // Retrieve next. this._lowerBody = this._wardrobe.GetNextLowerBody(); // Update UI. UpdateWardrobeUI(Resource.Id.AvatarLowerBody, this._lowerBody); }
// Add a new LowerBody. private void AddLowerBody(string name, string imagePath) { var item = new WardrobeItem(name, imagePath); this.LowerBodies.Add(item); }
private void UpdateWardrobeUI(int resourceId, WardrobeItem item) { UpdateWardrobeItemText(resourceId, item.Name); UpdateWardrobeItemImage(resourceId, item.ImagePath); }
// Add a new Topper. private void AddTopper(string name, string imagePath) { var item = new WardrobeItem(name, imagePath); this.Toppers.Add(item); }