管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2024-09-05 95d9356edef73a1ad5b04e62b7aef6b77697a226
DataLoader/LoginWin.xaml.cs
@@ -1,4 +1,7 @@
using System;
using 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";
        }
    }
}