private void btnDone_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (SConst.m_pCheckedLayers != null) { if (SConst.m_pCheckedLayers.Count > 0) { using (CSpatialSubs oSpatialSubs = new CSpatialSubs()) { oSpatialSubs.addLayers(ArcMap.Application, SConst.LayerLocation); } } } //SConst.clearLayerList(); this.Cursor = Cursors.Default; closeForm(); }
private void btnDone_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (SConst.m_pCheckedLayers != null) { if (SConst.m_pCheckedLayers.Count > 0) { using (CSpatialSubs oSpatialSubs = new CSpatialSubs()) { oSpatialSubs.addLayers(this.App, SConst.LayerLocation); } } } if (SConst.m_pCheckedLayers != null) { SConst.m_pCheckedLayers.Clear(); } this.Cursor = Cursors.Default; this.Dispose(); }