From 687b8fd0a9b1a5d1b4f8596912a2a2e095aa7d9c Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期日, 01 一月 2023 09:35:19 +0800
Subject: [PATCH] 1

---
 DataLoader/MainWindow.xaml.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/DataLoader/MainWindow.xaml.cs b/DataLoader/MainWindow.xaml.cs
index 26c564e..f297ef8 100644
--- a/DataLoader/MainWindow.xaml.cs
+++ b/DataLoader/MainWindow.xaml.cs
@@ -8,6 +8,7 @@
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Data;
+using System.Windows.Forms.VisualStyles;
 
 namespace DataLoader
 {
@@ -20,6 +21,8 @@
         private string _sourcePath;
 
         private string _targetPath;
+
+        private LoginWin win;
 
         public string SourcePath
         {
@@ -62,6 +65,7 @@
         {
             Main.Owner = this;
 
+            this.btnImport.IsEnabled = false;
             lvView.DataContext = viewDatas;
             lvView.SetBinding(ListView.ItemsSourceProperty, new Binding());
         }
@@ -70,7 +74,19 @@
         // 鐧诲綍
         private void Login_MouseLeftButtonDown(object sender, RoutedEventArgs e)
         {
+            win = new LoginWin();
+            this.Hide();
+            win.Show();
+        }
 
+        public void SetLoginInfo()
+        {
+            if (win != null) win.Close();
+            this.Show();
+
+            this.tbUid.Text = Main.UserId.ToString() + "锛�" + Main.Uname;
+            this.tbToken.Text = Main.Token;
+            this.btnImport.IsEnabled = true;
         }
 
         // 婧愮洰褰�

--
Gitblit v1.9.3