void cancel() { GiveItemList1.Clear(); GiveItemList2.Clear(); givenCoins1.Value = 0; givenCoins2.Value = 0; Update(); }
private void giveAllButton2_Click(object sender, RoutedEventArgs e) { GiveItemList2.Clear(); if (Selected2 != null) { GiveItemList2.AddRange(Selected2.Inventory); givenCoins2.Value = Selected2.Coins; } Update(); }