public IGoodGroupSlotItem CreateGroupSlot(IGoodSlotItem[] value)
        {
            var data = new Emulate_IGoodGroupSlotItem();

            data.InitData(_factory.CreateGroupSlot(value), _storage);
            return(data);
        }
Example #2
0
 public void InitData(IGoodGroupItem data, ChangeStorage storage)
 {
     _storage      = storage;
     _CurrentSlots = new Emulate_IGoodGroupSlotItem();
     _CurrentSlots.InitData(data.CurrentSlots, storage);
     RefreshNumber = data.RefreshNumber;
     FinishTime    = data.FinishTime;
 }
Example #3
0
 public void InitData(IGoodGroupItemClient client, ChangeStorage storage)
 {
     _storage = storage;
     client.CurrentSlots.Subscribe(x =>
     {
         _CurrentSlots = new Emulate_IGoodGroupSlotItem();
         if (x != null)
         {
             _CurrentSlots.InitData(x, storage);
         }
     }
                                   ).AddTo(_disposables);
     client.RefreshNumber.Subscribe(x => _RefreshNumber = x).AddTo(_disposables);
     client.FinishTime.Subscribe(x => _FinishTime       = x).AddTo(_disposables);
 }