Beispiel #1
0
        public ReceiveBookShipmentGUI(StoreRestServiceProxy store)
        {
            InitializeComponent();
            this.Text  = "Receive Book Shipment";
            this.Store = store;

            SetListOfBookShipmentsThatAlreadyWereShipped();
        }
Beispiel #2
0
        public StoreGUI(StoreRestServiceProxy store)
        {
            this._store = store;
            InitializeComponent();
            this.FormClosing += OnFormClosing;
            this.Text         = "Store";

            LoadStoreBooks();
            LoadStoreClients();
        }
Beispiel #3
0
        public Warehouse(StoreRestServiceProxy storeService, WarehouseGUI gui)
        {
            _storeService = storeService;
            _gui          = gui;

            loadSystemInformationFromFile();

            StoreWarehouseMessenger storeWarehouseMessenger = new StoreWarehouseMessenger(path, description);

            storeWarehouseMessenger.StartReceiving(OnNewReplenishmentRequest);
        }
Beispiel #4
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);
        }
Beispiel #5
0
    static void Main(string[] args)
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        StoreRestServiceProxy serviceProxy = new StoreRestServiceProxy();

        try
        {
            serviceProxy.StartService();
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            Console.WriteLine("Error starting service");
            Console.ReadLine();
            return;
        }
        StoreGUI storeGui = new StoreGUI(serviceProxy);

        Application.Run(storeGui);
    }