public void RemoveGoldBar(GoldBarModel goldBar) { if (_goldBars.Contains(goldBar)) { _goldBars.Remove(goldBar); } }
public void AddGoldBar(GoldBarModel goldBar) { if (_goldBars.Contains(goldBar)) { return; } _goldBars.Add(goldBar); Dispatch(new GoldBarFound(goldBar)); }
public GoldBarModel(GoldBarModel model) : this(model.PositionIndex) { }