18,7 → 18,7 |
GMapMarker Marker; |
MainWindow MainWindow; |
|
public CustomMarkerCopter(MainWindow window, GMapMarker marker, string title) |
public CustomMarkerCopter(MainWindow window, GMapMarker marker, string title, string sColor) |
{ |
this.InitializeComponent(); |
|
80,7 → 80,31 |
{ |
lbl.Content = s; |
} |
public void setColor(string sColor) |
{ |
switch (sColor) |
{ |
case "red": |
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
break; |
case "green": |
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterGreen.png", System.UriKind.Relative)); |
break; |
case "blue": |
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterBlue.png", System.UriKind.Relative)); |
break; |
case "yellow": |
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterYellow.png", System.UriKind.Relative)); |
break; |
case "pink": |
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterPink.png", System.UriKind.Relative)); |
break; |
|
default: |
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
break; |
} |
} |
void CustomMarkerCopter_SizeChanged(object sender, SizeChangedEventArgs e) |
{ |
// Marker.Offset = new Point(-e.NewSize.Width / 4, -e.NewSize.Height /2); |