示例#1
0
 void Connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
 {
     if (e.Connected)
     {
         Program.Invoke(this, RefreshPage);
     }
 }
示例#2
0
        internal static void Connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
        {
            // Show connection error
            if (e.Connected || e.Error == null)
                return;

            IXenConnection connection = (IXenConnection)sender;

            Program.Invoke(Program.MainWindow,
                           delegate()
                               {
                                   ShowConnectingDialogError_(Program.MainWindow, connection, e.Error);
                               });
        }
        void OnGeofenceManagerFailedToStartWithResolution(object sender, ConnectionResultEventArgs e)
        {
            _isProcessing = false;

            try
            {
                e.ConnectionResult.StartResolutionForResult(this, GeofenceManager.ConnectionFailedRequestCode);
            }
            catch (Android.Content.IntentSender.SendIntentException ex)
            {
                Log.Debug(TAG, ex.Message);

                ShowToast(Resource.String.failed_to_connect);
            }
        }
        private void Connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
        {
            CloseConnectingDialog();

            // show connection error
            if (e.Connected || e.Error == null)
            {
                return;
            }

            IXenConnection connection = (IXenConnection)sender;

            Program.Invoke(Program.MainWindow,
                           delegate()
            {
                XenConnectionUI.ShowConnectingDialogError_(getOwnerForm(), connection, e.Error);
            });
        }
示例#5
0
 private void connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
 {
     if (connection.IsConnected)
     {
         // If the connection has been reconnected then we need to update the session ref, as the old one is invalid
         LoginSession();
         Program.Invoke(Program.MainWindow, delegate
         {
             if (!browser.IsDisposed && browser.Document != null)
             {
                 browser.Document.InvokeScript("RefreshPage");
             }
             else
             {
                 log.Debug("Tried to access disposed webbrowser, ignoring refresh.");
             }
         });
     }
 }
        private void Connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
        {
            CloseConnectingDialog();

            // show connection error
            if (e.Connected || e.Error == null)
                return;

            IXenConnection connection = (IXenConnection)sender;

            Program.Invoke(Program.MainWindow,
                           delegate()
                           {
                               XenConnectionUI.ShowConnectingDialogError_(getOwnerForm(), connection, e.Error);
                           });
        }
示例#7
0
 void connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
 {
     if (connection.IsConnected)
     {
         // If the connection has been reconnected then we need to update the session ref, as the old one is invalid
         LoginSession();
         Program.Invoke(Program.MainWindow, delegate
         {
             if (!browser.IsDisposed)
                 browser.Document.InvokeScript("RefreshPage");
             else
                 log.Debug("Tried to access disposed webbrowser, ignoring refresh.");
         });
     }
 }
 void OnGeofenceManagerFailedToStart(object sender, ConnectionResultEventArgs e)
 {
     _isProcessing = false;
 }
示例#9
0
 void Connection_ConnectionResult(object sender, ConnectionResultEventArgs e)
 {
     if (e.Connected)
         Program.Invoke(this, RefreshPage);
 }