Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Commit

Permalink
fixed issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Haoliang Yu committed Jan 29, 2015
1 parent 0d90438 commit ce65dd8
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 7 deletions.
Binary file modified ARES.suo
Binary file not shown.
12 changes: 8 additions & 4 deletions ARES/Editor/EditTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,14 @@ protected override void OnMouseUp(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs
for(int row = tlCorner.Row; row <= brCorner.Row; row++)
{
for (int col = tlCorner.Column; col <= brCorner.Column; col++)
{
Pixel pixel = new Pixel(new Position(col, row));
pixel.GraphicElement = Display.DrawBox(pixel.Position, Editor.GetSelectionSymbol(), Editor.ActiveLayer);
Editor.Selections.Add(pixel);
{
Position pos = new Position(col, row);
if (!Editor.Selections.Exists(pos))
{
Pixel pixel = new Pixel(pos);
pixel.GraphicElement = Display.DrawBox(pixel.Position, Editor.GetSelectionSymbol(), Editor.ActiveLayer);
Editor.Selections.Add(pixel);
}
}
}

Expand Down
10 changes: 7 additions & 3 deletions ARES/Editor/IdentifyTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,13 @@ protected override void OnMouseUp(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs
{
for (int col = tlCorner.Column; col <= brCorner.Column; col++)
{
Pixel pixel = new Pixel(new Position(col, row));
pixel.GraphicElement = Display.DrawBox(pixel.Position, Editor.GetSelectionSymbol(), ArcMapApp.GetRasterLayer());
Editor.Selections.Add(pixel);
Position pos = new Position(col, row);
if (!Editor.Selections.Exists(pos))
{
Pixel pixel = new Pixel(pos);
pixel.GraphicElement = Display.DrawBox(pixel.Position, Editor.GetSelectionSymbol(), ArcMapApp.GetRasterLayer());
Editor.Selections.Add(pixel);
}
}
}

Expand Down
Binary file modified ARES/bin/Debug/ARES.dll
Binary file not shown.
Binary file modified ARES/bin/Debug/ARES.esriAddIn
Binary file not shown.
Binary file modified ARES/bin/Debug/ARES.pdb
Binary file not shown.
Binary file modified ARES/obj/Debug/ARES.dll
Binary file not shown.
Binary file modified ARES/obj/Debug/ARES.pdb
Binary file not shown.
Binary file modified ARES/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Binary file not shown.

0 comments on commit ce65dd8

Please sign in to comment.