Browse Source

临时提交

zhangjiaxin 4 years ago
parent
commit
eebeb772ff
1 changed files with 2 additions and 3 deletions
  1. 2 3
      OTSIncAReportApp/frmMeasureRstMgr.cs

+ 2 - 3
OTSIncAReportApp/frmMeasureRstMgr.cs

@@ -385,10 +385,8 @@ namespace OTSIncAReportApp
             if (DialogResult.OK == MessageBox.Show(sDeleteSampleName, "Tip", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning))
             {
                 //删除当前选中的节点
-                TreeNode tvnode = treeView1.SelectedNode;
-                treeView1.Nodes.Remove(tvnode);
+                DeletSample_Event(treeView1.SelectedNode.Text);
 
-                
                 //当节点全部删除完时刷新树以及主窗口的控件
                 if (treeView1.Nodes.Count == 0)
                 {
@@ -404,6 +402,7 @@ namespace OTSIncAReportApp
                     //删除树上的节点
                     m_WorkSampleName = m_ReportApp.m_DataMgrFun.GetSampleName();
                     m_TreeViewData.GetTreeWorkSampleNode(m_WorkSampleName);
+                    
                 }
             }
         }