Exemplo n.º 1
0
        private void btn_login_manual_Click(object sender, RoutedEventArgs e)
        {

            System.Windows.Forms.WebBrowser browser = new System.Windows.Forms.WebBrowser();
            // npdat
            //browser = downloadController.GetWebBrowserByAccountDB(account, this, true);
            browser = downloadController.GetWebBrowserByAccountDB(account);

            if (browser != null)
            {
                downloadController.UpdateManualImportMode(account, true);
                displayWebBrowserForm = new Window_DisplayWebBrowser();
                displayWebBrowserForm.Browser = browser;
                displayWebBrowserForm.ShowDialog();
                //Grid_label_login_manual.Visibility = Visibility.Hidden;
            }
        }
Exemplo n.º 2
0
 private void label_see_what_happen_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     // npdat
     //System.Windows.Forms.WebBrowser browser = downloadController.GetWebBrowserByAccountDB(account);
     System.Windows.Forms.WebBrowser browser = downloadController.GetWebBrowserByAccountDB(account);
     if (browser != null)
     {
         displayWebBrowserForm = new Window_DisplayWebBrowser();
         displayWebBrowserForm.Browser = browser;
         displayWebBrowserForm.ShowDialog();
     }
 }
Exemplo n.º 3
0
 private void label_login_manual(object sender, MouseButtonEventArgs e)
 {
     System.Windows.Forms.WebBrowser browser = downloadController.GetWebBrowserByAccountDB();
     if (browser != null)
     {
         displayWebBrowserForm = new Window_DisplayWebBrowser();
         displayWebBrowserForm.Browser = browser;
         displayWebBrowserForm.ShowDialog();
         Grid_label_login_manual.Visibility = Visibility.Hidden;
     }
 }
Exemplo n.º 4
0
        private void btn_login_manual_Click(object sender, RoutedEventArgs e)
        {

            System.Windows.Forms.WebBrowser browser = new System.Windows.Forms.WebBrowser();
            browser = downloadController.GetDefaultWebBrowserByAccountDB(account, this);

            if (browser != null)
            {
                displayWebBrowserForm = new Window_DisplayWebBrowser();
                displayWebBrowserForm.Browser = browser;
                displayWebBrowserForm.Owner = Application.Current.MainWindow;
                displayWebBrowserForm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                displayWebBrowserForm.ShowDialog();
                //Grid_label_login_manual.Visibility = Visibility.Hidden;
            }
        }