private void Status_StatusSet(object sender, Status.StatusEventsArgs e) { if (e.ResponseCode == System.Net.HttpStatusCode.OK) { Application.Current.Dispatcher.Invoke(delegate { Core.Status = e.Status; Home.CurrentAction = GlobalAction.users; }); } }
private void St_StatusGet(object sender, Status.StatusEventsArgs e) { if (e.ResponseCode == HttpStatusCode.OK) { Core.Status = e.Status; } //else //{ // MessageBoxResult result = MessageBox.Show(e.Body + " " + e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); //} }
private static void St_StatusGet(object sender, Status.StatusEventsArgs e) { Console.WriteLine("Receiving status done"); Print(e.ResponseCode.ToString()); Print(e.Message); Print(e.Body); if (e.ResponseCode == HttpStatusCode.OK) { Print(e.Status.StatusContent); } }
private void S_StatusGet(object sender, Status.StatusEventsArgs e) { Application.Current.Dispatcher.Invoke(delegate { if (e.ResponseCode == HttpStatusCode.OK) { if (Core.Status.StatusContent != e.Status.StatusContent) { Core.Status = e.Status; } } }); }
private void S_StatusGet(object sender, Status.StatusEventsArgs e) { Application.Current.Dispatcher.Invoke(delegate { if (e.ResponseCode == System.Net.HttpStatusCode.OK) { if (User.Status != e.Status.StatusContent) { textBlockStatus.Text = User.Status = e.Status.StatusContent; if (User.Status == null) { labelStatus.Visibility = Visibility.Collapsed; } else { labelStatus.Visibility = Visibility.Visible; } } } }); }
private static void St_StatusGet1(object sender, Status.StatusEventsArgs e) { Core.Status = e.Status; }