Bladeren bron

在报告程序中 添加 常量 无效颗粒=-1 以便于维护

cxs 2 jaren geleden
bovenliggende
commit
c8e5596493
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      OTSIncAReportApp/2-CommonFunction/CommonClass/DisplayField.cs

+ 2 - 2
OTSIncAReportApp/2-CommonFunction/CommonClass/DisplayField.cs

@@ -35,7 +35,7 @@ namespace OTSIncAReportGraph
         private Color m_color;
         private GraphicsPath m_GPath;
         private Bitmap m_originalImage;
-
+        const int INVALIDPARTICLE= -1;
         /// <summary>
         /// 构造函数
         /// </summary>
@@ -61,7 +61,7 @@ namespace OTSIncAReportGraph
             foreach (Particle particle in list_particle)
             {
                 //分布图排列图无效颗粒不显示
-                if (particle.TypeId == -1)
+                if (particle.TypeId == INVALIDPARTICLE)
                 {
                     continue;
                 }