public Warehouse(StoreRestServiceProxy storeService, WarehouseGUI gui) { _storeService = storeService; _gui = gui; loadSystemInformationFromFile(); StoreWarehouseMessenger storeWarehouseMessenger = new StoreWarehouseMessenger(path, description); storeWarehouseMessenger.StartReceiving(OnNewReplenishmentRequest); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); WarehouseGUI gui = new WarehouseGUI(); RemotingConfiguration.Configure("Warehouse.exe.config", false); StoreRestServiceProxy serviceProxy = new StoreRestServiceProxy(); Warehouse warehouse = new Warehouse(serviceProxy, gui); gui.SetWarehouse(warehouse); Application.Run(gui); }