Rev 2434 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2434 | Rev 2435 | ||
---|---|---|---|
Line 745... | Line 745... | ||
745 | private void GridGMapControl_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
745 | private void GridGMapControl_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
746 | { |
746 | { |
747 | if(e.ClickCount == 2) |
747 | if(e.ClickCount == 2) |
748 | { |
748 | { |
749 | pWPAdd = new Point(e.GetPosition(this).X, e.GetPosition(this).Y); |
749 | pWPAdd = new Point(e.GetPosition(this).X, e.GetPosition(this).Y); |
750 | canvasAddPoint.Margin = new Thickness(e.GetPosition(this).X, e.GetPosition(this).Y, canvasAddPoint.Margin.Left, canvasAddPoint.Margin.Bottom); |
750 | canvasAddPoint.Margin = new Thickness(pWPAdd.X, pWPAdd.Y, canvasAddPoint.Margin.Left, canvasAddPoint.Margin.Bottom); |
751 | canvasAddPoint.Visibility = Visibility.Visible; |
751 | canvasAddPoint.Visibility = Visibility.Visible; |
752 | } |
752 | } |
Line 753... | Line 753... | ||
753 | 753 | ||
754 | } |
754 | } |
Line 764... | Line 764... | ||
764 | { |
764 | { |
765 | if (pWPAdd != null) |
765 | if (pWPAdd != null) |
766 | { |
766 | { |
767 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
767 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
768 | _addWP(p,0); |
768 | _addWP(p,0); |
- | 769 | canvasAddPoint.Visibility = Visibility.Collapsed; |
|
769 | } |
770 | } |
770 | } |
771 | } |
771 | private void btnCmAddPOI_Click(object sender, RoutedEventArgs e) |
772 | private void btnCmAddPOI_Click(object sender, RoutedEventArgs e) |
772 | { |
773 | { |
773 | if (pWPAdd != null) |
774 | if (pWPAdd != null) |
774 | { |
775 | { |
775 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
776 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
776 | _addWP(p,1); |
777 | _addWP(p,1); |
- | 778 | canvasAddPoint.Visibility = Visibility.Collapsed; |
|
777 | } |
779 | } |
778 | } |
780 | } |
779 | private void btnCmAddFailsave_Click(object sender, RoutedEventArgs e) |
781 | private void btnCmAddFailsave_Click(object sender, RoutedEventArgs e) |
780 | { |
782 | { |
781 | if (pWPAdd != null) |
783 | if (pWPAdd != null) |
782 | { |
784 | { |
783 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
785 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
784 | _addWP(p,2); |
786 | _addWP(p,2); |
- | 787 | canvasAddPoint.Visibility = Visibility.Collapsed; |
|
785 | } |
788 | } |
786 | } |
789 | } |
787 | private void btnCmAddLanding_Click(object sender, RoutedEventArgs e) |
790 | private void btnCmAddLanding_Click(object sender, RoutedEventArgs e) |
788 | { |
791 | { |
789 | if (pWPAdd != null) |
792 | if (pWPAdd != null) |
790 | { |
793 | { |
791 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
794 | PointLatLng p = MainMap.FromLocalToLatLng((int)pWPAdd.X, (int)pWPAdd.Y); |
792 | _addWP(p,3); |
795 | _addWP(p,3); |
- | 796 | canvasAddPoint.Visibility = Visibility.Collapsed; |
|
793 | } |
797 | } |
794 | } |
798 | } |
Line 795... | Line 799... | ||
795 | 799 |