public IGoodGroupSlotItem CreateGroupSlot(IGoodSlotItem[] value) { var data = new Emulate_IGoodGroupSlotItem(); data.InitData(_factory.CreateGroupSlot(value), _storage); return(data); }
public void InitData(IGoodGroupItem data, ChangeStorage storage) { _storage = storage; _CurrentSlots = new Emulate_IGoodGroupSlotItem(); _CurrentSlots.InitData(data.CurrentSlots, storage); RefreshNumber = data.RefreshNumber; FinishTime = data.FinishTime; }
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); }