void service1_GetStatusCompleted(object sender, GetStatusCompletedEventArgs e) { this.textBox5.Clear(); string Handle = e.UserState.ToString(); if (e.Error != null) { this.textBox4.Text = "Bug report [" + Handle + "] not available (at this time)"; return; } string strResult = e.Result; if (strResult == null) { this.textBox5.Text = "Bug report [" + Handle + "] does not exist (anymore)"; return; } this.textBox5.Text = strResult.Replace("\n", "\r\n"); Service1 service1 = new Service1(); service1.GetBugReportCompleted += new GetBugReportCompletedEventHandler(service1_GetBugReportCompleted); service1.GetBugReportAsync(Handle, Handle); }
private void GnsClientOnGetStatusCompleted(object sender, GetStatusCompletedEventArgs e) { if (e.Result != null && e.Error == null) { dataGridFriendsStatus.ItemsSource = e.Result; dataGridMePastStatus.ItemsSource = e.Result; } }