void dlg_Closed(object sender, EventArgs e) {
     //try and clean up
     GeocodeUtils.RemoveFromMapOverlay(ForTheUcModule.ActiveMapView);
     //geocode dialog was closed
     _dlg.Closed -= dlg_Closed;
     _dlg = null;
 }
 protected override async void OnClick() {
     if (_dlg != null)
         return;//already shown
     _dlg = new GeocodeTextWindow();
     _dlg.Closed += dlg_Closed;
     _dlg.Show();
 }
 void dlg_Closed(object sender, EventArgs e)
 {
     //try and clean up
     GeocodeUtils.RemoveFromMapOverlay(ForTheUcModule.ActiveMapView);
     //geocode dialog was closed
     _dlg.Closed -= dlg_Closed;
     _dlg         = null;
 }
 protected override async void OnClick()
 {
     if (_dlg != null)
     {
         return;//already shown
     }
     _dlg         = new GeocodeTextWindow();
     _dlg.Closed += dlg_Closed;
     _dlg.Show();
 }