| | |
| | | using System; |
| | | using CefSharp; |
| | | using DataLoader.CS; |
| | | using DataLoader.Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | |
| | | |
| | | 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"; |
| | | } |
| | | } |
| | | } |