private void SetState([NotNull] StateInventoryBind state) { _stateClass = state; State = state is BindState ? State.Bind : State.UnBind; ChangeState.Invoke(State); }
protected void SetState(StateInventoryBind state) => InventoryBinding.SetState(state);
public InventoryBinding(IInventoryStructureContainer inventoryStructureContainer, IEnumerable <DataEntity> dataEntitiesForLoad = null) { var inventoryStructure = inventoryStructureContainer.GetInventoryStructure().Clone(); _stateClass = new NoInitState(this, inventoryStructure, dataEntitiesForLoad); }