Ejemplo n.º 1
0
        void _client_GetItemLastPricesCompleted(object sender, GetItemLastPricesCompletedEventArgs e)
        {
            //InsertItemPriceIntoDb
            List <ItemLastPrice> list = new List <ItemLastPrice> ();
            string msg = null;

            if (e.Error != null)
            {
                msg = e.Error.Message;
            }
            else if (e.Cancelled)
            {
                msg = CallingActivity.Resources.GetString(Resource.String.msg_reqcancel);
            }
            else
            {
                list = e.Result.ToList <ItemLastPrice>();
                RunOnUiThread(() => InsertItemPriceIntoDb(list));
            }

            if (msg != null)
            {
                RunOnUiThread(() => Downloadhandle.Invoke(CallingActivity, 0, msg));
            }
        }
Ejemplo n.º 2
0
        void _client_GetItemLastPricesCompleted(object sender, GetItemLastPricesCompletedEventArgs e)
        {
            //InsertItemPriceIntoDb
            List<ItemLastPrice> list = new List<ItemLastPrice> ();
            string msg = null;

            if ( e.Error != null)
            {
                msg =  e.Error.Message;
            }
            else if ( e.Cancelled)
            {
                msg = CallingActivity.Resources.GetString(Resource.String.msg_reqcancel);
            }
            else
            {
                list =  e.Result.ToList<ItemLastPrice>();
                RunOnUiThread (() => InsertItemPriceIntoDb(list));
            }

            if (msg != null) {
                RunOnUiThread (() => Downloadhandle.Invoke (CallingActivity, 0, msg));
            }
        }