管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-01-01 550e65b657f0eccd513ba91339fb8f0ea3f9fa02
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