Exemple #1
0
        public WarehouseGUI()
        {
            InitializeComponent();

            proxyShop = new ShopServiceClient(new InstanceContext(this));
            proxyShop.SetClientBaseAddress();
            proxyWH = new WarehouseServiceClient();
        }
Exemple #2
0
        public ShopGUI()
        {
            InitializeComponent();
            proxy = new ShopServiceClient(new InstanceContext(this));
            proxy.SetClientBaseAddress();
            proxy.Subscribe();

            orders = proxy.getOrders();
            Orders.Items.Clear();
            foreach (Order order in orders)
            {
                Orders.Items.Add(order.id + " " + Enum.GetName(typeof(Title), order.title) + " " + order.quant);
            }

            Dictionary <Title, int> stocks = proxy.getStocks();

            Stock.Items.Clear();
            foreach (Title t in stocks.Keys)
            {
                Stock.Items.Add(Enum.GetName(typeof(Title), t) + " " + stocks[t]);
            }
        }
Exemple #3
0
 public Printer()
 {
     proxy = new ShopServiceClient(new InstanceContext(this));
     proxy.SetClientBaseAddress();
     proxy.Subscribe();
 }