private void webView_LoadCompleted(object sender, LoadCompletedEventArgs e)
 {
     loaded = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// //On load Complete Event of the web view
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void onLoadCompleted(object sender, LoadCompletedEventArgs e)
 {
     try
     {
         this.Invoke(new MethodInvoker(delegate
         {
             pnlLoading.Hide();
         }));
         if (!isLoaded)
         {
             ChangeNetworkStatus(isNetworkAvailable, Settings.Default.IsNetworkChanged);
         }
     }
     catch (Exception ex)
     {
         ErrorTracker.WriteErrorLog("MainWindow.cs", "onLoadCompleted", "", ex.Message, ex.StackTrace, "ERROR");
     }
 }