示例#1
0
        async void dispathcerTimer_Tick(object sender, object e)
        {
            var client = new ServiceReference1.GroceryServiceSoapClient();
            var result = await client.GetVersionAsync();

            if (result.Body.GetVersionResult.Version > logicLayer.GetVersion())
            {
                logicLayer.UpdateShopList(result.Body.GetVersionResult);
                RefreshView();
            }
            
        }
示例#2
0
 void dispathcerTimer_Tick(object sender, System.EventArgs e)
 {
     var client = new ServiceReference1.GroceryServiceSoapClient();
     client.GetVersionCompleted += client_GetVersionCompleted;
     client.GetVersionAsync();
 }
示例#3
0
 private void IncrementUpdate()
 {
     var shopListItem = new ShopList()
     {
         Version = shopList.Version + 1,
         ShopItems = shopList.ShopItems
     };
     var client = new ServiceReference1.GroceryServiceSoapClient();
     client.UploadVersionAsync(shopListItem);
 }