public static LayerPropertyForm GetInstance(LayersForm parent, int layerHandle) { if (_instance == null) { _instance = new LayerPropertyForm(parent, layerHandle); } return(_instance); }
public static PointLayerSymbologyForm GetInstance(LayerPropertyForm parent, MapLayer mapLayer) { if (_instance == null) { _instance = new PointLayerSymbologyForm(parent, mapLayer); } return(_instance); }
public PolygonLineLayerSymbologyForm(LayerPropertyForm parent, MapLayer mapLayer) { InitializeComponent(); _parentForm = parent; _mapLayer = mapLayer; _options = ((Shapefile)_mapLayer.LayerObject).DefaultDrawingOptions; _shpFileType = ((Shapefile)_mapLayer.LayerObject).ShapefileType; LineWidthFix.FixLineWidth((Shapefile)_mapLayer.LayerObject); }
public PointLayerSymbologyForm(LayerPropertyForm parent, MapLayer mapLayer) { InitializeComponent(); _mapLayer = mapLayer; _shapeFile = mapLayer.LayerObject as Shapefile; _shpFileType = _shapeFile.ShapefileType; _options = _shapeFile.DefaultDrawingOptions; _originalOptions = _options; _parentForm = parent; }
private void ShowLayerProperties() { var lpf = LayerPropertyForm.GetInstance(this, (int)layerGrid[0, _rowIndexFromMouseDown].Tag); if (!lpf.Visible) { lpf.Show(this); } else { lpf.BringToFront(); } }
private void OnLayerPropertyForm_FormClosed(object sender, FormClosedEventArgs e) { _instance = null; //global.SaveFormSettings(this); }