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(); }
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; } }
private static int x2b9ae66d393d74b1(ILayerStruct x98da6ccbcd45ba73) { return x98da6ccbcd45ba73.Size; }
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; } }
private static int xff77519d643268a0(ILayerStruct x98da6ccbcd45ba73) { return x98da6ccbcd45ba73.Size; }
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(); }