protected override void OnMouseDown(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg)
{
if (arg.Button != System.Windows.Forms.MouseButtons.Left)
return;
try
{
//Get the active view from the ArcMap static class.
IActiveView activeView = ArcMap.Document.FocusMap as IActiveView;
var point = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(arg.X, arg.Y) as IPoint;
Mediator.NotifyColleagues(Constants.NEW_MAP_POINT, point);
}
catch (Exception ex) { Console.WriteLine(ex.Message); }
}
protected override void OnMouseMove(MouseEventArgs arg)