示例#1
0
        private void InitPars()
        {
            this._layerStruct = GlobeVariables.MapInfosCollection.FindLayer(this._mapLayer.Name);

            if (this._layerStruct == null)
            {
                throw new Exception("The layer '" + this._mapLayer.Name + "' didn't found.");
            }

            this.InitLayerDescriptionTab();
            this.InitLayerSymbolTab();
            this.InitLayerRenderTab();
        }
示例#2
0
        private void SetConextMenuState()
        {
            if (string.IsNullOrEmpty(this._selectedLayerName))
            {
                return;
            }

            Utilities.LayerProperty oLayerProperty = new MapConfigure.Utilities.LayerProperty();
            MapUtil.MapOperation    oMapOper       = new MapConfigure.MapUtil.MapOperation();
            this._selectedLayerInfos = oLayerProperty.GetLayerInformationByName(this._selectedLayerName, GlobeVariables.MapInfosCollection.Layers);

            if (this._selectedLayerInfos.LayerType == (short)MapObjects2.LayerTypeConstants.moImageLayer)
            {
                this.mnuIsLayerVisible.Checked = (oMapOper.GetLayerByName(GlobeVariables.MapControl, this._selectedLayerInfos.AliasName) as MapObjects2.ImageLayer).Visible;
                this.mnuViewAttributes.Visible = false;
            }
            else if (this._selectedLayerInfos.LayerType == (short)MapObjects2.LayerTypeConstants.moMapLayer)
            {
                this.mnuIsLayerVisible.Checked = (oMapOper.GetLayerByName(GlobeVariables.MapControl, this._selectedLayerInfos.AliasName) as MapObjects2.MapLayer).Visible;
                this.mnuViewAttributes.Visible = true;
            }
        }
示例#3
0
 private static int x2b9ae66d393d74b1(ILayerStruct x98da6ccbcd45ba73)
 {
     return x98da6ccbcd45ba73.Size;
 }
示例#4
0
        private void SetConextMenuState()
        {
            if (string.IsNullOrEmpty(this._selectedLayerName))
                return;

            Utilities.LayerProperty oLayerProperty = new MapConfigure.Utilities.LayerProperty();
            MapUtil.MapOperation oMapOper = new MapConfigure.MapUtil.MapOperation();
            this._selectedLayerInfos = oLayerProperty.GetLayerInformationByName(this._selectedLayerName, GlobeVariables.MapInfosCollection.Layers);

            if (this._selectedLayerInfos.LayerType == (short)MapObjects2.LayerTypeConstants.moImageLayer)
            {
                this.mnuIsLayerVisible.Checked = (oMapOper.GetLayerByName(GlobeVariables.MapControl,this._selectedLayerInfos.AliasName) as MapObjects2.ImageLayer).Visible;
                this.mnuViewAttributes.Visible = false;
            }
            else if (this._selectedLayerInfos.LayerType == (short)MapObjects2.LayerTypeConstants.moMapLayer)
            {
                this.mnuIsLayerVisible.Checked = (oMapOper.GetLayerByName(GlobeVariables.MapControl, this._selectedLayerInfos.AliasName) as MapObjects2.MapLayer).Visible;
                this.mnuViewAttributes.Visible = true;
            }
        }
示例#5
0
 private static int xff77519d643268a0(ILayerStruct x98da6ccbcd45ba73)
 {
     return x98da6ccbcd45ba73.Size;
 }
示例#6
0
        private void InitPars()
        {
            this._layerStruct = GlobeVariables.MapInfosCollection.FindLayer(this._mapLayer.Name);

            if (this._layerStruct == null) throw new Exception("The layer '" + this._mapLayer.Name + "' didn't found.");

            this.InitLayerDescriptionTab();
            this.InitLayerSymbolTab();
            this.InitLayerRenderTab();
        }