Rev 2289 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2289 | Rev 2319 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | //Popup Popup; |
16 | //Popup Popup; |
17 | //Label Label; |
17 | //Label Label; |
18 | GMapMarker Marker; |
18 | GMapMarker Marker; |
19 | MainWindow MainWindow; |
19 | MainWindow MainWindow; |
Line 20... | Line 20... | ||
20 | 20 | ||
21 | public CustomMarkerCopter(MainWindow window, GMapMarker marker, string title) |
21 | public CustomMarkerCopter(MainWindow window, GMapMarker marker, string title, string sColor) |
22 | { |
22 | { |
Line 23... | Line 23... | ||
23 | this.InitializeComponent(); |
23 | this.InitializeComponent(); |
24 | 24 | ||
Line 78... | Line 78... | ||
78 | } |
78 | } |
79 | public void setText(string s) |
79 | public void setText(string s) |
80 | { |
80 | { |
81 | lbl.Content = s; |
81 | lbl.Content = s; |
82 | } |
82 | } |
- | 83 | public void setColor(string sColor) |
|
- | 84 | { |
|
- | 85 | switch (sColor) |
|
- | 86 | { |
|
- | 87 | case "red": |
|
- | 88 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
|
- | 89 | break; |
|
- | 90 | case "green": |
|
- | 91 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterGreen.png", System.UriKind.Relative)); |
|
- | 92 | break; |
|
- | 93 | case "blue": |
|
- | 94 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterBlue.png", System.UriKind.Relative)); |
|
- | 95 | break; |
|
- | 96 | case "yellow": |
|
- | 97 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterYellow.png", System.UriKind.Relative)); |
|
- | 98 | break; |
|
- | 99 | case "pink": |
|
- | 100 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterPink.png", System.UriKind.Relative)); |
|
- | 101 | break; |
|
83 | 102 | ||
- | 103 | default: |
|
- | 104 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
|
- | 105 | break; |
|
- | 106 | } |
|
- | 107 | } |
|
84 | void CustomMarkerCopter_SizeChanged(object sender, SizeChangedEventArgs e) |
108 | void CustomMarkerCopter_SizeChanged(object sender, SizeChangedEventArgs e) |
85 | { |
109 | { |
86 | // Marker.Offset = new Point(-e.NewSize.Width / 4, -e.NewSize.Height /2); |
110 | // Marker.Offset = new Point(-e.NewSize.Width / 4, -e.NewSize.Height /2); |
87 | } |
111 | } |