From 550e65b657f0eccd513ba91339fb8f0ea3f9fa02 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 01 一月 2023 16:18:05 +0800 Subject: [PATCH] 1.1.7 --- DataLoader/MainWindow.xaml.cs | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/DataLoader/MainWindow.xaml.cs b/DataLoader/MainWindow.xaml.cs index 42d3edb..587b2fe 100644 --- a/DataLoader/MainWindow.xaml.cs +++ b/DataLoader/MainWindow.xaml.cs @@ -69,8 +69,10 @@ this.btnImport.IsEnabled = false; lvView.DataContext = viewDatas; lvView.SetBinding(ListView.ItemsSourceProperty, new Binding()); - } + String file = "E:\\data\\mpt\\A4mpt20131125.mpt"; + string md5 = MD5Helper.getMD5Hash(file); + } // 鐧诲綍 private void Login_MouseLeftButtonDown(object sender, RoutedEventArgs e) @@ -123,6 +125,23 @@ // 瀵煎叆 private void Import_MouseLeftButtonDown(object sender, RoutedEventArgs e) { + if (string.IsNullOrEmpty(SourcePath) || !Directory.Exists(SourcePath)) + { + MessageBox.Show("璇烽�夋嫨鏁版嵁鐩綍锛�"); + return; + } + if (string.IsNullOrEmpty(TargetPath) || !Directory.Exists(TargetPath)) + { + MessageBox.Show("璇烽�夋嫨鍏ュ簱鐩綍锛�"); + return; + } + string[] files = Directory.GetFiles(SourcePath); + if (null == files || files.Length == 0) + { + MessageBox.Show("鏁版嵁鐩綍涓嬫病鏈夋枃浠讹紒"); + return; + } + viewDatas.Clear(); Dispatcher.Invoke(new Action(delegate -- Gitblit v1.9.3