예제 #1
0
 public void RemoveGoldBar(GoldBarModel goldBar)
 {
     if (_goldBars.Contains(goldBar))
     {
         _goldBars.Remove(goldBar);
     }
 }
예제 #2
0
        public void AddGoldBar(GoldBarModel goldBar)
        {
            if (_goldBars.Contains(goldBar))
            {
                return;
            }

            _goldBars.Add(goldBar);
            Dispatch(new GoldBarFound(goldBar));
        }
예제 #3
0
 public GoldBarModel(GoldBarModel model) : this(model.PositionIndex)
 {
 }