public static LayerPropertyForm GetInstance(LayersForm parent, int layerHandle) { if (_instance == null) { _instance = new LayerPropertyForm(parent, layerHandle); } return(_instance); }
public static LayersForm GetInstance(MapLayersHandler mapLayers, MainWindowForm parent) { if (_instance == null) { _instance = new LayersForm(mapLayers, parent); } return(_instance); }
public LayerPropertyForm(LayersForm parent, int layerHandle) { InitializeComponent(); _parentForm = parent; _layerHandle = layerHandle; _mapLayers = _parentForm.MapLayers; _mapLayers.OnVisibilityExpressionSet += OnVisibilityExpression; _mapLayer = _parentForm.MapLayers.get_MapLayer(_layerHandle); _shapefileLayer = _mapLayer.LayerObject as Shapefile; }
private void LayersForm_FormClosed(object sender, FormClosedEventArgs e) { _instance = null; _mapLayersHandler.LayerRead -= OnLayerRead; }