From 566e0d21293a5fe6423fd7a16541bce00eeb2e38 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期五, 27 九月 2024 11:15:21 +0800
Subject: [PATCH] OK

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

diff --git a/DataLoader/MainWindow.xaml.cs b/DataLoader/MainWindow.xaml.cs
index efb818d..3b7ddd5 100644
--- a/DataLoader/MainWindow.xaml.cs
+++ b/DataLoader/MainWindow.xaml.cs
@@ -36,6 +36,7 @@
             CommonProp.Init();
 
             this.btnLoad.IsEnabled = false;
+            this.btnDel.IsEnabled = false;
             this.btnImport.IsEnabled = false;
 
             lvView.DataContext = viewDatas;
@@ -165,6 +166,23 @@
             this.isBusy = false;
         }
 
+        // 鍒犻櫎
+        private void Del_MouseLeftButtonDown(object sender, RoutedEventArgs e)
+        {
+            if (null == this.viewDatas || this.viewDatas.Count == 0) return;
+
+            int i = 0;
+            while (i < this.viewDatas.Count)
+            {
+                if (this.viewDatas[i] != null && this.viewDatas[i].Checked)
+                {
+                    this.viewDatas.RemoveAt(i);
+                    continue;
+                }
+                i++;
+            }
+        }
+
         // 瀵煎叆
         private void Import_MouseLeftButtonDown(object sender, RoutedEventArgs e)
         {

--
Gitblit v1.9.3