private void btn_Buffer_Click(object sender, EventArgs e) { FrmBuffer frm = new FrmBuffer(); frm.m_axMapControl = axMapControl1; if (frm.ShowDialog() == DialogResult.OK) { SpatialAnalysis sa = new SpatialAnalysis(); sa.BufferOfFeatures(axMapControl1, (IFeatureLayer)frm.m_pLayer, frm.m_dRadius); } }
/// <summary> /// Occurs when this command is clicked /// </summary> public override void OnClick() { if (null == m_hookHelper) { return; } if (m_hookHelper.FocusMap.LayerCount > 0) { FrmBuffer bufferDlg = new FrmBuffer(m_hookHelper); bufferDlg.Show(); } }