Sfoglia il codice sorgente

Add the detected field of view area to the overview of the measurement results

cxs 6 giorni fa
parent
commit
b961f0467c

+ 1 - 0
Bin/x64/Debug/Resources/XMLData/AppResource_ZH.xml

@@ -916,6 +916,7 @@
 	  <Control name="col10" text="特征/夹杂物指数" />
 	  <Control name="col11" text="纳入指数/比例因子" />
 	  <Control name="col12" text="放大倍数" />
+	  <Control name="col20" text="已检测视场面积 (Add the detected field of view area to the overview of the measurement resultsm²)" />
     </Controls>
  </Form>
   <Form>

+ 2 - 1
OTSIncAReportApp/1-UI/Control_Grids/ResultGrid.cs

@@ -159,13 +159,14 @@ namespace OTSIncAReportGrids
                     break;
                 }
             }
-
+            double filedsAreadetected = scanFieldSize * (scanFieldSize * high / wide) * filedCount;
             double ratio = Math.Round(particleArea / (filedsArea * 1000000) *double.Parse(sizestr),3);
 
             keyValues.Add(table["col2"].ToString(), star.ToString("yyyy-MM-dd HH:mm:ss"));
             keyValues.Add(table["col3"].ToString(), end.ToString("yyyy-MM-dd HH:mm:ss"));
             keyValues.Add(table["col4"].ToString(), Math.Round(timeSpan.TotalMinutes, 2).ToString() + "mins");
             keyValues.Add(table["col5"].ToString(), filedCount.ToString());
+            keyValues.Add(table["col20"].ToString(), Math.Round(filedsAreadetected/ 1000000, 3).ToString());
             keyValues.Add(table["col12"].ToString(), Math.Round(Magnification, 2).ToString());
 			string LibraryName = "";