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; }
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; } }