예제 #1
0
 protected virtual void ItemListViewModel_ItemAdded(object sender, ItemEventArgs e)
 {
     ItemViewModel ivm = new ItemViewModel(e.Item);
     AddToViewModelCollection(ivm);
     RaisePropertyChangedForAll();
 }
예제 #2
0
 void Items_ItemClicked(object sender, ItemEventArgs e)
 {
     if (PresentPersons.Selected != null)
     {
         PresentPersons.Selected.Buy(e.Item);
         if(Bierstrichler.Properties.Settings.Default.QuestionGameActive)
             QuestionMaster.Hit();
     }
 }
예제 #3
0
 protected virtual void ItemListViewModel_ItemRemoved(object sender, ItemEventArgs e)
 {
     foreach(ItemViewModel ivm in Items)
         if(ivm.Model == e.Item)
         {
             Items.Remove(ivm);
             break;
         }
     RaisePropertyChangedForAll();
 }