Ejemplo n.º 1
0
        private void InvokeProxyEvent(ProxyEventArgs e)
        {
            EventHandler handler = ProxyEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
 private void InvokeProxyEvent(ProxyEventArgs e)
 {
     EventHandler handler = ProxyEvent;
     if (handler != null) handler(this, e);
 }
Ejemplo n.º 3
0
 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);
     }
 }