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); }
private void OnMapClicked(MapClickedEventArgs e) { EventHandler<MapClickedEventArgs> handler = MapClicked; if (handler != null) handler(this, e); }