private void fmAddLayers_Load(object sender, EventArgs e) { //if (!SConst.EnableEditorControl) //{ // tsbEditor.Visible = false; //} if (SConst.LayerLocation == null) { CMedToolsSubs.setConstVals(); } else if (SConst.LayerLocation.Length < 1) { CMedToolsSubs.setConstVals(); } lblInfo.Text = SConst.LayerLocation; try { tsbEditor.Visible = true; loadControls(); } catch (Exception ex) { string s = ex.Message; } }
public fmTLSearch() { InitializeComponent(); this.App = (IApplication)ArcMap.ThisApplication; if ((SConst.LayerLocation == null) || (SConst.LayerLocation.Length < 1)) { CMedToolsSubs.setConstVals(); } }
private void fmPrintMap_Load(object sender, EventArgs e) { if (!checkLayers()) { this.Dispose(); return; } if ((SConst.LayerLocation == null) || (SConst.LayerLocation.Length < 1)) { CMedToolsSubs.setConstVals(); } resetForm(); //loadMapSize(); loadOrientation(); loadMapScale(); loadMapLayers(); loadPrinters(); this.txtTitle.Focus(); }
public fmAddDataFrame() { InitializeComponent(); this.App = ArcMap.ThisApplication as IApplication; if ((SConst.LayerLocation == null) || (SConst.LayerLocation.Length < 1)) { CMedToolsSubs.setConstVals(); } Dictionary <string, string> dctCommon = SConst.CommonLayers; this.m_commonLayers = new string[dctCommon.Keys.Count]; dctCommon.Values.CopyTo(this.m_commonLayers, 0); //CConst.CommonLayers.Values.CopyTo(this.m_commonLayers, 0); this.m_EconOnLayers = this.getOnLayers("@type='EconDev' and @state='ON'"); // this.getEconOnLayers(); this.m_FireOnLayers = this.getOnLayers("@type='Fire' and @state='ON'"); //this.getFireOnLayers(); this.m_PlanOnLayers = this.getOnLayers("@type='Planning' and @state='ON'"); //this.getPlanOnLayers(); this.m_PWOnLayers = this.getOnLayers("@type='PublicWorks' and @state='ON'"); //this.getPWOnLayers(); this.m_PoliceOnLayers = this.getOnLayers("@type='Police' and @state='ON'"); //this.getPoliceOnLayers(); }