public void saveSystemInformationFromFile() { WarehouseData restServiceData = new WarehouseData(); restServiceData._shippedReplenishmentRequests = _shippedReplenishmentRequests; restServiceData._replenishmentRequests = _replenishmentRequests; Utils.SaveObjectToFileAsBinary(restServiceData, informationFileName); }
public void loadSystemInformationFromFile() { WarehouseData restServiceData = (WarehouseData)Utils.LoadObjectToFileAsBinary(informationFileName); if (restServiceData == null) { return; } _shippedReplenishmentRequests = restServiceData._shippedReplenishmentRequests; _replenishmentRequests = restServiceData._replenishmentRequests; foreach (ReplenishmentRequest replenishmentRequest in _replenishmentRequests) { _gui.OnNewReplenishmentRequest(replenishmentRequest); } }