Example #1
0
 public static LayerPropertyForm GetInstance(LayersForm parent, int layerHandle)
 {
     if (_instance == null)
     {
         _instance = new LayerPropertyForm(parent, layerHandle);
     }
     return(_instance);
 }
Example #2
0
 public static LayersForm GetInstance(MapLayersHandler mapLayers, MainWindowForm parent)
 {
     if (_instance == null)
     {
         _instance = new LayersForm(mapLayers, parent);
     }
     return(_instance);
 }
Example #3
0
 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;
 }
Example #4
0
 private void LayersForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _instance = null;
     _mapLayersHandler.LayerRead -= OnLayerRead;
 }