コード例 #1
0
 void _wb_LoadCompleted(object sender, NavigationEventArgs e)
 {
     _url = e.Uri;
     if (LoginInfo != null)
     {
         if (LoginInfo.CheckLogin(_url))
         {
             this.RaiseEvent(new RoutedEventArgs(CompletedEvent));
         }
     }
 }
コード例 #2
0
 void navigating(object sender, NavigatingCancelEventArgs e)
 {
     CurrentUri = e.Uri;
     if (LoginInfo != null)
     {
         if (LoginInfo.CheckLogin(new BrowserStatus()
         {
             Url = CurrentUri,
             IsCompleted = false
         }))
         {
             TryClose(true);
         }
     }
 }
コード例 #3
0
 void loadCompleted(object sender, NavigationEventArgs e)
 {
     DisplayName = ((dynamic)_webBrowser.Document).Title;
     CurrentUri  = e.Uri;
     if (LoginInfo != null)
     {
         if (LoginInfo.CheckLogin(new BrowserStatus()
         {
             Url = CurrentUri,
             Title = ((dynamic)_webBrowser.Document).Title,
             IsCompleted = true
         }))
         {
             TryClose(true);
         }
     }
 }