コード例 #1
0
        private void ClientOnSayHelloToCompleted(object sender, SayHelloToCompletedEventArgs sayHelloToCompletedEventArgs)
        {
            string msg = null;

            if (sayHelloToCompletedEventArgs.Error != null)
            {
                msg = sayHelloToCompletedEventArgs.Error.Message;
            }
            else if (sayHelloToCompletedEventArgs.Cancelled)
            {
                msg = "Request was cancelled.";
            }
            else
            {
                msg = sayHelloToCompletedEventArgs.Result;
            }
            RunOnUiThread(() => _sayHelloWorldTextView.Text = msg);
        }
コード例 #2
0
        private void ClientOnSayHelloToCompleted(object sender, SayHelloToCompletedEventArgs e)
        {
            string msg = null;

            if (e.Error != null)
            {
                msg = e.Error.Message;
            }
            else if (e.Cancelled)
            {
                msg = "Request was cancelled.";
            }
            else
            {
                msg = e.Result;
            }
            InvokeOnMainThread(() => sayHelloWorldText.Text = msg);
        }
コード例 #3
0
ファイル: MainActivity.cs プロジェクト: Yashwanth1302/Test
        private void ClientOnSayHelloToCompleted(object sender, SayHelloToCompletedEventArgs sayHelloToCompletedEventArgs)
        {
            string msg = null;

            if (sayHelloToCompletedEventArgs.Error != null)
            {
                msg = sayHelloToCompletedEventArgs.Error.Message;
            }
            else if (sayHelloToCompletedEventArgs.Cancelled)
            {
                msg = "Request was cancelled.";
            }
            else
            {
                msg = sayHelloToCompletedEventArgs.Result;
            }
            RunOnUiThread(() => _sayHelloWorldTextView.Text = msg);
        }
コード例 #4
0
        private void ClientOnSayHelloToCompleted(object sender, SayHelloToCompletedEventArgs e)
        {
            string msg = null;

            if (e.Error != null)
            {
                msg = e.Error.Message;
            }
            else if (e.Cancelled)
            {
                msg = "Request was cancelled.";
            }
            else
            {
                msg = e.Result;
            }
            InvokeOnMainThread(() => sayHelloWorldText.Text = msg);
        }