Exemplo n.º 1
0
 public NewRedlineLayerDialog(RedlineStyle style, RedlineDataStoreFormat defaultDataStore, int defaultGeometryTypes, string defaultName)
     : this()
 {
     _style = style;
     cmbDataStoreFormat.DataSource = Enum.GetValues(typeof(RedlineDataStoreFormat));
     
     txtName.Text = defaultName;
     cmbDataStoreFormat.SelectedItem = defaultDataStore;
     if ((defaultGeometryTypes & MgFeatureGeometricType.Point) == MgFeatureGeometricType.Point)
         chkPoints.Checked = true;
     if ((defaultGeometryTypes & MgFeatureGeometricType.Curve) == MgFeatureGeometricType.Curve)
         chkLines.Checked = true;
     if ((defaultGeometryTypes & MgFeatureGeometricType.Surface) == MgFeatureGeometricType.Surface)
         chkPolygons.Checked = true;
 }
Exemplo n.º 2
0
        public NewRedlineLayerDialog(RedlineStyle style, RedlineDataStoreFormat defaultDataStore, int defaultGeometryTypes, string defaultName)
            : this()
        {
            _style = style;
            cmbDataStoreFormat.DataSource = Enum.GetValues(typeof(RedlineDataStoreFormat));

            txtName.Text = defaultName;
            cmbDataStoreFormat.SelectedItem = defaultDataStore;
            if ((defaultGeometryTypes & MgFeatureGeometricType.Point) == MgFeatureGeometricType.Point)
            {
                chkPoints.Checked = true;
            }
            if ((defaultGeometryTypes & MgFeatureGeometricType.Curve) == MgFeatureGeometricType.Curve)
            {
                chkLines.Checked = true;
            }
            if ((defaultGeometryTypes & MgFeatureGeometricType.Surface) == MgFeatureGeometricType.Surface)
            {
                chkPolygons.Checked = true;
            }
        }