Beispiel #1
0
        private void buttonTailPartStyle_Click(object sender, EventArgs e)
        {
            if (m_Geometry != null)
            {
                if(m_Geometry.Type==EnumGeometryType.GeoPolyline3D)
                {
                    GSOSimpleLineStyle3D geoStyle3d = m_Geometry.ExtrudeStyle.TailStyle as GSOSimpleLineStyle3D;
                    if (geoStyle3d != null)
                    {
                        FrmSetLineStyle dlg = new FrmSetLineStyle(geoStyle3d, m_GlobeControl);
                        dlg.Show(this);
                    }

                }
                else
                {
                    GSOSimplePolygonStyle3D geoStyle3d = m_Geometry.ExtrudeStyle.TailStyle as GSOSimplePolygonStyle3D;
                    if (geoStyle3d != null)
                    {
                        FrmSetPolygonStyle dlg = new FrmSetPolygonStyle(geoStyle3d, m_GlobeControl);
                        dlg.Show(this);
                    }

                }

            }
        }
Beispiel #2
0
 private void buttonBodyPartStyle_Click(object sender, EventArgs e)
 {
     if (m_Geometry != null && m_Geometry.ExtrudeStyle!=null)
     {
         GSOSimplePolygonStyle3D geoStyle3d = m_Geometry.ExtrudeStyle.BodyStyle as GSOSimplePolygonStyle3D;
         if (geoStyle3d != null)
         {
             FrmSetPolygonStyle dlg = new FrmSetPolygonStyle(geoStyle3d, m_GlobeControl);
             dlg.Show(this);
         }
     }
 }