From 6a1991b477cd7f719d7ad486b6ad2ab170c91425 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 01 一月 2023 11:46:59 +0800 Subject: [PATCH] 1 --- DataLoader/MainWindow.xaml.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DataLoader/MainWindow.xaml.cs b/DataLoader/MainWindow.xaml.cs index f297ef8..ac93f5d 100644 --- a/DataLoader/MainWindow.xaml.cs +++ b/DataLoader/MainWindow.xaml.cs @@ -122,8 +122,14 @@ // 瀵煎叆 private void Import_MouseLeftButtonDown(object sender, RoutedEventArgs e) { - viewDatas.Add(new ViewData() { ID = 1, FilePath = "c:\\", Status = "鍔犺浇涓�" }); - viewDatas.Add(new ViewData() { ID = 2, FilePath = "c:\\", Status = "瀹屾垚" }); + viewDatas.Clear(); + + Dispatcher.Invoke(new Action(delegate + { + this.btnImport.IsEnabled = false; + Importor.Import(viewDatas, SourcePath, TargetPath); + this.btnImport.IsEnabled = true; + })); } } } -- Gitblit v1.9.3