public bool Equals(ItemUnit other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return Equals(other.BasicItem, this.BasicItem) && other.Count == this.Count; }
public bool Equals(ItemUnit other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.BasicItem, this.BasicItem) && other.Count == this.Count); }
public void AddRecievedItem(ItemUnit recievedItem) { RecievedItems.Add(recievedItem); }
public void AddRecievedUnit(ItemUnit itemUnit) { m_Paragraph.RecievedItems.Add(itemUnit); RecievedItems.Add(new ItemUnitModel(itemUnit)); }
private void AddParagraphRewardItemCommandExecute() { var itemUnit = new ItemUnit(NewRewardParagraphItemType.ItemType, NewRewardParagraphItemTypeCount); SelectedParagraph.AddRecievedUnit(itemUnit); AddParagraphRewardItemCommand.RaiseCanExecuteChanged(); }
public ItemUnitModel(ItemUnit itemUnit) { ItemUnit = itemUnit; m_ItemTypeModel = new ItemTypeModel(itemUnit.BasicItem); }
public ItemUnit(ItemUnit item) : this(item.BasicItem, item.Count) { }
public RequestedItemUnitModel(ItemUnit itemUnit) : base(itemUnit) { }
public void AddRecievedUnit(ItemUnit itemUnit) { m_Edge.RecievedItems.Add(itemUnit); RecievedItems.Add(new ItemUnitModel(itemUnit)); }
public void AddRecievedItem(ItemUnit recievedItem) { RecievedItems.Add(recievedItem); IsChanged = true; }