private void InvokeProxyEvent(ProxyEventArgs e) { EventHandler handler = ProxyEvent; if (handler != null) { handler(this, e); } }
private void InvokeProxyEvent(ProxyEventArgs e) { EventHandler handler = ProxyEvent; if (handler != null) handler(this, e); }
private void HandleProxy(ProxyEventArgs args) { if (!Deployment.Current.Dispatcher.CheckAccess()) { Deployment.Current.Dispatcher.BeginInvoke(() => HandleProxy(args)); return; } HidePogressIndicator(); if (args.Code == HttpStatusCode.OK) { PushDataToModel(args.Response); } else if (args.Code == HttpStatusCode.Unused) { MessageBox.Show(Resource.message_Exception, Resource.hint, MessageBoxButton.OK); } else { MessageBox.Show(Resource.message_WebExeption, Resource.hint, MessageBoxButton.OK); } }