public MapWindow() { InitializeComponent(); doerfer = WebServiceCom.newInstance().getDorfCoordinates(); PaintVillage(); rectTrup.Fill = Brushes.Transparent; }
public MapWindow() { try { InitializeComponent(); doerfer = WebServiceCom.newInstance().getDorfCoordinates(); PaintVillage(); rectTrup.Fill = Brushes.Transparent; } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }