protected override void OnClick() { frmPingSampler frm = new frmPingSampler(); frm.ShowDialog(); ArcMap.Application.CurrentTool = null; }