Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            List<Good> goods = new List<Good>();

            WCFStoreServiceManager.StoreServiceClient client = new StoreServiceClient();
            goods = client.Goods().ToList<Good>();
            //WCFClient wcfc = new WCFClient();
            //goods = wcfc.Goods().ToList<Good>();

            dg_goods.ItemsSource = goods;
        }
Exemplo n.º 2
0
        private void Window_Activated(object sender, EventArgs e)
        {
            List<Good> goods = new List<Good>();

            WCFStoreServiceManager.StoreServiceClient client = new StoreServiceClient();
            goods = client.Goods().ToList<Good>();
            //WCFClient wcfc = new WCFClient();
//goods = wcfc.Goods().ToList<Good>();


            dg_goods.ItemsSource = goods;
        }