public void SetBuyoutInfo(ItemTradeInfo info) { buyoutInfo.Update(info.Buyout); offerInfo.Update(info.CurrentOffer); priceInfo.Update(info.Price); Notes = info.Notes; }
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); }
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; }