From 95d9356edef73a1ad5b04e62b7aef6b77697a226 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 05 九月 2024 10:13:30 +0800
Subject: [PATCH] 1

---
 DataLoader/LoginWin.xaml.cs |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/DataLoader/LoginWin.xaml.cs b/DataLoader/LoginWin.xaml.cs
index d61c423..f56831a 100644
--- a/DataLoader/LoginWin.xaml.cs
+++ b/DataLoader/LoginWin.xaml.cs
@@ -1,4 +1,7 @@
-锘縰sing System;
+锘縰sing CefSharp;
+using DataLoader.CS;
+using DataLoader.Model;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -14,14 +17,23 @@
 
 namespace DataLoader
 {
-    /// <summary>
-    /// LoginWin.xaml 鐨勪氦浜掗�昏緫
-    /// </summary>
     public partial class LoginWin : Window
     {
+        private NtstWeb ntstWeb = new NtstWeb();
+
         public LoginWin()
         {
             InitializeComponent();
+
+            ntstWeb.owner = this;
+            CefSharpSettings.WcfEnabled = false;
+            web.JavascriptObjectRepository.Settings.LegacyBindingEnabled = true;
+            web.JavascriptObjectRepository.Register(NtstWeb.ObjName, ntstWeb, true, BindingOptions.DefaultBinder);
+        }
+
+        private void Window_Loaded(object sender, RoutedEventArgs e)
+        {
+            web.Address = Tools.BaseDir + "htmls\\login.html";
         }
     }
 }

--
Gitblit v1.9.3