管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-01-01 687b8fd0a9b1a5d1b4f8596912a2a2e095aa7d9c
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;
        }
        // 源目录