Esempio n. 1
0
 private void LeftMouseButtonClick(object obj)
 {
     if (SelectedZone != null && EnableEditZone)
     {
         MouseButtonEventArgs e = obj as MouseButtonEventArgs;
         var sender             = e.Source as Client.Controls.Map.Map;
         if (sender != null)
         {
             System.Windows.Point mousePosition = e.GetPosition(sender);
             CurrentLocation = sender.ViewportPointToLocation(mousePosition);
             SelectedZone.AddLocation(CurrentLocation, true);
         }
     }
 }