Rev 2319 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2319 | Rev 2388 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | icon.Source = null; |
74 | icon.Source = null; |
75 | icon = null; |
75 | icon = null; |
76 | //Popup = null; |
76 | //Popup = null; |
77 | //Label = null; |
77 | //Label = null; |
78 | } |
78 | } |
- | 79 | public double rotate |
|
- | 80 | { |
|
- | 81 | set { Rotate.Angle = value; } |
|
- | 82 | get { return Rotate.Angle; } |
|
- | 83 | } |
|
- | 84 | ||
79 | public void setText(string s) |
85 | public void setText(string s) |
80 | { |
86 | { |
81 | lbl.Content = s; |
87 | lbl.Content = s; |
82 | } |
88 | } |
83 | public void setColor(string sColor) |
89 | public void setCopterColor(string sColor) |
84 | { |
90 | { |
85 | switch (sColor) |
91 | switch (sColor) |
86 | { |
92 | { |
87 | case "red": |
93 | case "red": |
88 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
94 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
Line 103... | Line 109... | ||
103 | default: |
109 | default: |
104 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
110 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
105 | break; |
111 | break; |
106 | } |
112 | } |
107 | } |
113 | } |
- | 114 | public void setHeadingColor(string sColor) |
|
- | 115 | { |
|
- | 116 | switch (sColor) |
|
- | 117 | { |
|
- | 118 | case "red": |
|
- | 119 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative)); |
|
- | 120 | break; |
|
- | 121 | case "green": |
|
- | 122 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingGreen.png", System.UriKind.Relative)); |
|
- | 123 | break; |
|
- | 124 | case "blue": |
|
- | 125 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingBlue.png", System.UriKind.Relative)); |
|
- | 126 | break; |
|
- | 127 | case "yellow": |
|
- | 128 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingYellow.png", System.UriKind.Relative)); |
|
- | 129 | break; |
|
- | 130 | case "pink": |
|
- | 131 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingPink.png", System.UriKind.Relative)); |
|
- | 132 | break; |
|
- | 133 | ||
- | 134 | default: |
|
- | 135 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative)); |
|
- | 136 | break; |
|
- | 137 | } |
|
- | 138 | } |
|
108 | void CustomMarkerCopter_SizeChanged(object sender, SizeChangedEventArgs e) |
139 | void CustomMarkerCopter_SizeChanged(object sender, SizeChangedEventArgs e) |
109 | { |
140 | { |
110 | // Marker.Offset = new Point(-e.NewSize.Width / 4, -e.NewSize.Height /2); |
141 | // Marker.Offset = new Point(-e.NewSize.Width / 4, -e.NewSize.Height /2); |
111 | } |
142 | } |