コード例 #1
0
ファイル: DownloadHelper.cs プロジェクト: mokth/merpV3
        void _client_GetItemReceiveCompleted(object sender, GetItemReceiveCompletedEventArgs e)
        {
            List <ItemGR> list = new List <ItemGR> ();
            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 <ItemGR>();
                RunOnUiThread(() => InsertItemGRIntoDb(list));
            }

            if (msg != null)
            {
                RunOnUiThread(() => Downloadhandle.Invoke(CallingActivity, 0, msg));
            }
        }
コード例 #2
0
ファイル: DownloadHelper.cs プロジェクト: mokth/merpV3
        void _client_GetItemReceiveCompleted(object sender, GetItemReceiveCompletedEventArgs e)
        {
            List<ItemGR> list = new List<ItemGR> ();
            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<ItemGR>();
                RunOnUiThread (() => InsertItemGRIntoDb(list));
            }

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