private void showContent(string command) { this.ucSheetLinks.HighLight(command); //allow print of all sheets this.ucDownloadPrint.Show(false, true); this.ucDownloadPrint.SetPrintControl(this); //get id from viewstate DiffuseSources.Map map = DiffuseSources.GetMap(LayerId); string headline = String.Empty; string content = String.Empty; if (command.Equals(Sheets.DiffuseSources.GeneralInfo.ToString())) { headline = Resources.GetGlobal("DiffuseSources", "GeneralInfo"); content = map.GetGeneralInformation(); } else if (command.Equals(Sheets.DiffuseSources.Methodology.ToString())) { headline = Resources.GetGlobal("DiffuseSources", "Methodology"); content = map.GetMethodology(); } else if (command.Equals(Sheets.DiffuseSources.SourceData.ToString())) { headline = Resources.GetGlobal("DiffuseSources", "SourceData"); content = map.GetSourceData(); } this.litHeadline.Text = String.Format("{0} / {1}", Resources.GetGlobal("DiffuseSources", "DiffuseSources"), headline); this.lbDiffuseContent.Text = content; updateSubHeader(map); }
// update flash map private void updateFlashMap(string layerID) { MapFilter mapFilterSmall; MapFilter mapFilterExpanded; String header; if (String.IsNullOrEmpty(layerID)) //clear map { mapFilterSmall = new MapFilter(); mapFilterSmall.Layers = layerID; mapFilterExpanded = mapFilterSmall; header = ""; } else { DiffuseSources.Map map = DiffuseSources.GetMap(layerID); mapFilterSmall = map.MapFilterSmall; mapFilterExpanded = map.MapFilterExpanded; header = map.GetTitleFull(); } MapUtils.UpdateDiffuseMap(MAPID, Page, Page.ClientID, mapFilterSmall, "", Request.ApplicationPath); // ((MasterSearchPage)this.Master).UpdateExpandedScript(mapFilterExpanded, header); }