示例#1
0
 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;
 }
示例#2
0
 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);
 }
示例#3
0
 public void AddRecievedItem(ItemUnit recievedItem)
 {
     RecievedItems.Add(recievedItem);
 }
示例#4
0
 public void AddRecievedUnit(ItemUnit itemUnit)
 {
     m_Paragraph.RecievedItems.Add(itemUnit);
     RecievedItems.Add(new ItemUnitModel(itemUnit));
 }
示例#5
0
 public void AddRecievedItem(ItemUnit recievedItem)
 {
     RecievedItems.Add(recievedItem);
 }
示例#6
0
 private void AddParagraphRewardItemCommandExecute()
 {
     var itemUnit = new ItemUnit(NewRewardParagraphItemType.ItemType, NewRewardParagraphItemTypeCount);
     SelectedParagraph.AddRecievedUnit(itemUnit);
     AddParagraphRewardItemCommand.RaiseCanExecuteChanged();
 }
示例#7
0
 public ItemUnitModel(ItemUnit itemUnit)
 {
     ItemUnit = itemUnit;
     m_ItemTypeModel = new ItemTypeModel(itemUnit.BasicItem);
 }
示例#8
0
 public ItemUnit(ItemUnit item)
     : this(item.BasicItem, item.Count)
 {
 }
 public RequestedItemUnitModel(ItemUnit itemUnit)
     : base(itemUnit)
 {
 }
示例#10
0
 public void AddRecievedUnit(ItemUnit itemUnit)
 {
     m_Edge.RecievedItems.Add(itemUnit);
     RecievedItems.Add(new ItemUnitModel(itemUnit));
 }
示例#11
0
 public ItemUnit(ItemUnit item)
     : this(item.BasicItem, item.Count)
 {
 }
示例#12
0
 public void AddRecievedItem(ItemUnit recievedItem)
 {
     RecievedItems.Add(recievedItem);
     IsChanged = true;
 }
示例#13
0
 public void AddRecievedItem(ItemUnit recievedItem)
 {
     RecievedItems.Add(recievedItem);
     IsChanged = true;
 }