Esempio n. 1
0
 public static LayerPropertyForm GetInstance(LayersForm parent, int layerHandle)
 {
     if (_instance == null)
     {
         _instance = new LayerPropertyForm(parent, layerHandle);
     }
     return(_instance);
 }
Esempio n. 2
0
 public static PointLayerSymbologyForm GetInstance(LayerPropertyForm parent, MapLayer mapLayer)
 {
     if (_instance == null)
     {
         _instance = new PointLayerSymbologyForm(parent, mapLayer);
     }
     return(_instance);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public PointLayerSymbologyForm(LayerPropertyForm parent, MapLayer mapLayer)
 {
     InitializeComponent();
     _mapLayer        = mapLayer;
     _shapeFile       = mapLayer.LayerObject as Shapefile;
     _shpFileType     = _shapeFile.ShapefileType;
     _options         = _shapeFile.DefaultDrawingOptions;
     _originalOptions = _options;
     _parentForm      = parent;
 }
Esempio n. 5
0
        private void ShowLayerProperties()
        {
            var lpf = LayerPropertyForm.GetInstance(this, (int)layerGrid[0, _rowIndexFromMouseDown].Tag);

            if (!lpf.Visible)
            {
                lpf.Show(this);
            }
            else
            {
                lpf.BringToFront();
            }
        }
Esempio n. 6
0
 private void OnLayerPropertyForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _instance = null;
     //global.SaveFormSettings(this);
 }