示例#1
0
 private void MapClickedHandler(object sender, MapClickedEventArgs e)
 {
     if (e.MouseButton == MouseButton.Left)
         ViewModel.AddMapItem(e.X, e.Y);
     else if (e.MouseButton == MouseButton.Right)
         ViewModel.RemoveMapItem(e.X, e.Y);
 }
示例#2
0
 private void OnMapClicked(MapClickedEventArgs e)
 {
     EventHandler<MapClickedEventArgs> handler = MapClicked;
     if (handler != null) handler(this, e);
 }