Exemple #1
0
        public Warehouse(StoreRestServiceProxy storeService, WarehouseGUI gui)
        {
            _storeService = storeService;
            _gui          = gui;

            loadSystemInformationFromFile();

            StoreWarehouseMessenger storeWarehouseMessenger = new StoreWarehouseMessenger(path, description);

            storeWarehouseMessenger.StartReceiving(OnNewReplenishmentRequest);
        }
Exemple #2
0
        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);
        }