Example #1
0
 public void SetBuyoutInfo(ItemTradeInfo info)
 {
     buyoutInfo.Update(info.Buyout);
     offerInfo.Update(info.CurrentOffer);
     priceInfo.Update(info.Price);
     Notes = info.Notes;
 }        
Example #2
0
        void buyoutControl_Update(ItemTradeInfo info)
        {
            updateBuyout(info);
            Settings.SaveBuyouts();

            resyncText();
            itemImage.ContextMenu.IsOpen = false;
        }
 public void SetBuyoutInfo(ItemTradeInfo buyoutInfo)
 {
     (this.DataContext as SetBuyoutViewModel).SetBuyoutInfo(buyoutInfo);
 }
Example #4
0
        private void updateBuyout(ItemTradeInfo info)
        {
            ItemDisplayViewModel vm = this.DataContext as ItemDisplayViewModel;
            Item item = vm.Item;

            if (info.IsEmpty)
            {
                Settings.Buyouts.Remove(item.UniqueIDHash);
                return;
            }

            Settings.Buyouts[item.UniqueIDHash] = info;
        }