Index: Core/Components/src/Core.Components.DotSpatial/MouseCoordinatesMapExtension.cs
===================================================================
diff -u -r4cae09faae858b07c0eb1719c0722d87dd43b172 -r3bef31215d91db0e7f684dc8728f2a610d55ac3c
--- Core/Components/src/Core.Components.DotSpatial/MouseCoordinatesMapExtension.cs (.../MouseCoordinatesMapExtension.cs) (revision 4cae09faae858b07c0eb1719c0722d87dd43b172)
+++ Core/Components/src/Core.Components.DotSpatial/MouseCoordinatesMapExtension.cs (.../MouseCoordinatesMapExtension.cs) (revision 3bef31215d91db0e7f684dc8728f2a610d55ac3c)
@@ -20,17 +20,24 @@
// All rights reserved.
using System;
-using System.Drawing;
using System.Windows.Forms;
using DotSpatial.Controls;
namespace Core.Components.DotSpatial
{
+ ///
+ /// An extension for the which shows the map coordinates of the mouse.
+ ///
public class MouseCoordinatesMapExtension : Extension
{
private readonly Map map;
private readonly TextBox textBox;
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The wich the extension applies to.
+ /// Thrown when is null.
public MouseCoordinatesMapExtension(Map map)
{
if (map == null)
@@ -47,13 +54,19 @@
};
}
+ ///
+ /// Actives the extension by keeping track of the mouse and showing the coordinates on the .
+ ///
public override void Activate()
{
map.GeoMouseMove += OnMouseMove;
map.Controls.Add(textBox);
base.Activate();
}
+ ///
+ /// Deactives the extension so it won't keep track of the mouse and doesn't show the coordinates on the .
+ ///
public override void Deactivate()
{
map.GeoMouseMove -= OnMouseMove;