コード例 #1
0
 public ShopQueenSectionScreen()
 {
     //
     // mMenuButtonBuy
     //
     this.mMenuButtonBuy.Text = "Buy";
     this.mMenuButtonBuy.Click += this.MenuButtonBuy_Click;
     //
     // mMenuButtonBack
     //
     this.mMenuButtonBack.Text = "Back";
     this.mMenuButtonBack.Click += this.MenuButtonBack_Click;
     //
     // mSelectedItemComponent
     //
     this.mSelectedItemComponent = this.mTopItemComponent;
     this.mSelectedItemComponent.IsSelected = true;
 }
コード例 #2
0
 private void SelectItemComponent(ShopQueenSelectionItemComponent itemComponent)
 {
     System.Diagnostics.Debug.Assert(this.mSelectedItemComponent != null);
     System.Diagnostics.Debug.Assert(itemComponent != null);
     this.mSelectedItemComponent.IsSelected = false;
     this.mSelectedItemComponent = itemComponent;
     this.mSelectedItemComponent.IsSelected = true;
 }
コード例 #3
0
        private void PopulateItemComponent(ShopQueenSelectionItemComponent itemComponent, MetaQueenBee metaQueenBee)
        {
            System.Diagnostics.Debug.Assert(itemComponent != null);
            System.Diagnostics.Debug.Assert(metaQueenBee != null);

            itemComponent.Tag = metaQueenBee;
            itemComponent.NameText = metaQueenBee.Name;
            itemComponent.DescriptionText = metaQueenBee.Description;
            itemComponent.Price = metaQueenBee.PurchasePrice;
        }