public ReceiveBookShipmentGUI(StoreRestServiceProxy store) { InitializeComponent(); this.Text = "Receive Book Shipment"; this.Store = store; SetListOfBookShipmentsThatAlreadyWereShipped(); }
public StoreGUI(StoreRestServiceProxy store) { this._store = store; InitializeComponent(); this.FormClosing += OnFormClosing; this.Text = "Store"; LoadStoreBooks(); LoadStoreClients(); }
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); }
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); }