internal AreaFeatureStyleEditor(IEditorService editor, ClassDefinition schema, string featureSource, ILayerStylePreviewable prev) : this() { m_editor = editor; m_schema = schema; _factory = (ILayerElementFactory)editor.GetEditedResource(); var fs = (IFeatureSource)m_editor.ResourceService.GetResource(featureSource); m_providername = fs.Provider; m_featureSource = featureSource; _preview = prev; var conn = editor.GetEditedResource().CurrentConnection; if (Array.IndexOf(conn.Capabilities.SupportedServices, (int)ServiceType.Mapping) >= 0) { _mappingSvc = (IMappingService)conn.GetService((int)ServiceType.Mapping); } lnkRefresh.Visible = this.UseLayerIconPreview; }
public SymbolInstancesDialog(IEditorService edSvc, ICompositeSymbolization comp, ClassDefinition cls, string provider, string featureSourceId, ILayerStylePreviewable prev) { InitializeComponent(); _edSvc = edSvc; _comp = comp; _cls = cls; _provider = provider; _featureSourceId = featureSourceId; _preview = prev; var conn = edSvc.GetEditedResource().CurrentConnection; if (Array.IndexOf(conn.Capabilities.SupportedServices, (int)ServiceType.Mapping) >= 0) { _mappingSvc = (IMappingService)conn.GetService((int)ServiceType.Mapping); } foreach (var inst in _comp.SymbolInstance) AddInstance(inst, false); }
internal AreaFeatureStyleEditor(IEditorService editor, ClassDefinition schema, string featureSource, ILayerStylePreviewable prev) : this() { m_editor = editor; m_schema = schema; _factory = (ILayerElementFactory)editor.GetEditedResource(); var fs = (IFeatureSource)m_editor.CurrentConnection.ResourceService.GetResource(featureSource); m_providername = fs.Provider; m_featureSource = featureSource; _preview = prev; var conn = editor.CurrentConnection; if (Array.IndexOf(conn.Capabilities.SupportedServices, (int)ServiceType.Mapping) >= 0) { _mappingSvc = (IMappingService)conn.GetService((int)ServiceType.Mapping); } lnkRefresh.Visible = this.UseLayerIconPreview; }
public SymbolInstancesDialog(IEditorService edSvc, ICompositeSymbolization comp, ClassDefinition cls, string provider, string featureSourceId, ILayerStylePreviewable prev) { InitializeComponent(); grdOverrides.DataSource = _params; _edSvc = edSvc; _comp = comp; _cls = cls; _provider = provider; _featureSourceId = featureSourceId; _preview = prev; var conn = edSvc.CurrentConnection; if (Array.IndexOf(conn.Capabilities.SupportedServices, (int)ServiceType.Mapping) >= 0) { _mappingSvc = (IMappingService)conn.GetService((int)ServiceType.Mapping); } foreach (var inst in _comp.SymbolInstance) { AddInstance(inst, false); } }
internal PointFeatureStyleEditor(IEditorService editor, ClassDefinition schema, string featureSource, Image currentW2D, ILayerStylePreviewable prev) : this(editor, schema, featureSource, prev) { grpW2DStyle.Tag = currentW2D; }