Пример #1
0
 /// <param name="g">其值可赋为 null</param>
 protected void RefreshUI_PictureBox(ModelBase sm, Graphics g)
 {
     if (sm != null)
     {
         StationGeometry sg = sm.GetStationGeometry();
         // 将新模型进行重新绘制
         if (sg != null)
         {
             if (sg is SoilFrameGeometry)
             {
                 modelDrawer1.DrawSoilFrameModel(sg as SoilFrameGeometry, g);
             }
             else if (sg is SoilTunnelGeometry)
             {
                 modelDrawer1.DrawSoilTunnelModel(sg as SoilTunnelGeometry, g);
             }
         }
     }
 }