예제 #1
0
 //------------------------------------------------------------------------------------------------------------------------
 //                                                  SelectItem()
 //------------------------------------------------------------------------------------------------------------------------
 //attempt to select an item
 public void SelectItem(Item item)
 {
     if (item != null)
     {
         shopModel.SelectItem(item);
     }
 }
 //------------------------------------------------------------------------------------------------------------------------
 //                                                  SelectItem()
 //------------------------------------------------------------------------------------------------------------------------
 //attempt to select an item
 public void SelectItem(Item pItem)
 {
     if (pItem != null)
     {
         _shopModel.SelectItem(pItem);
         UpdateShopData();
         UpdateView();
     }
 }
예제 #3
0
 //------------------------------------------------------------------------------------------------------------------------
 //                                                  SelectItem()
 //------------------------------------------------------------------------------------------------------------------------
 //Called when a certain item is selected. Only used by Mouse control.
 public void SelectItem(Item item)
 {
     model.SelectItem(item);
 }