|
@@ -488,20 +488,13 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
particlesAll = dt.Copy();
|
|
|
particlesAll.Columns.Add("Element");
|
|
|
}
|
|
|
- //particlesAll = GetInfoForPartucleDevidePage2("");
|
|
|
-
|
|
|
- //DataTable elementchemistry = GetElementChemistry();
|
|
|
+
|
|
|
|
|
|
DataTable dt_element = GetElementChemistry();
|
|
|
DataTable elementchemistry = dt_element.Copy();
|
|
|
|
|
|
- //for (int i = 0; i < dt_element.Rows.Count; i++)
|
|
|
- //{
|
|
|
- // if (dt_element.Rows[i]["Name"].ToString() != "Fe")
|
|
|
- // {
|
|
|
- // elementchemistry.Rows.Add(dt_element.Rows[i].ItemArray);
|
|
|
- // }
|
|
|
- //}
|
|
|
+
|
|
|
+ List<int> list_int = new List<int>();
|
|
|
|
|
|
for (int a=0;a<lst_str.Count;a++)
|
|
|
{
|
|
@@ -509,10 +502,15 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
{
|
|
|
if (elementchemistry.Rows[i]["Name"].ToString() == lst_str[a].ToString())
|
|
|
{
|
|
|
- elementchemistry.Rows[i].Delete();
|
|
|
+ list_int.Add(i);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ for (int i=0;i< list_int.Count;i++)
|
|
|
+ {
|
|
|
+ elementchemistry.Rows[list_int[i]].Delete();
|
|
|
+ }
|
|
|
elementchemistry.AcceptChanges();
|
|
|
|
|
|
for (int i = 0; i < particlesAll.Rows.Count; i++)
|