Rev 2388 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2388 | Rev 2390 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | //Popup = null; |
76 | //Popup = null; |
77 | //Label = null; |
77 | //Label = null; |
78 | } |
78 | } |
79 | public double rotate |
79 | public double rotate |
80 | { |
80 | { |
81 | set { Rotate.Angle = value; } |
81 | set { Rotate1.Angle = value; } |
82 | get { return Rotate.Angle; } |
82 | get { return Rotate1.Angle; } |
83 | } |
83 | } |
Line 84... | Line 84... | ||
84 | 84 | ||
85 | public void setText(string s) |
85 | public void setText(string s) |
86 | { |
86 | { |
Line 89... | Line 89... | ||
89 | public void setCopterColor(string sColor) |
89 | public void setCopterColor(string sColor) |
90 | { |
90 | { |
91 | switch (sColor) |
91 | switch (sColor) |
92 | { |
92 | { |
93 | case "red": |
93 | case "red": |
- | 94 | s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke = |
|
- | 95 | f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Red); |
|
94 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
96 | // icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
95 | break; |
97 | break; |
96 | case "green": |
98 | case "green": |
- | 99 | s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke = |
|
- | 100 | f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.SpringGreen); |
|
97 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterGreen.png", System.UriKind.Relative)); |
101 | // icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterGreen.png", System.UriKind.Relative)); |
98 | break; |
102 | break; |
99 | case "blue": |
103 | case "blue": |
100 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterBlue.png", System.UriKind.Relative)); |
104 | // icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterBlue.png", System.UriKind.Relative)); |
- | 105 | s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke = |
|
- | 106 | f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Cyan); |
|
101 | break; |
107 | break; |
102 | case "yellow": |
108 | case "yellow": |
103 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterYellow.png", System.UriKind.Relative)); |
109 | // icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterYellow.png", System.UriKind.Relative)); |
- | 110 | s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke = |
|
- | 111 | f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Yellow); |
|
104 | break; |
112 | break; |
105 | case "pink": |
113 | case "pink": |
106 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterPink.png", System.UriKind.Relative)); |
114 | // icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterPink.png", System.UriKind.Relative)); |
- | 115 | s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke = |
|
- | 116 | f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Magenta); |
|
107 | break; |
117 | break; |
Line 108... | Line 118... | ||
108 | 118 | ||
- | 119 | default: |
|
- | 120 | s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke = |
|
109 | default: |
121 | f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Red); |
110 | icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
122 | // icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative)); |
111 | break; |
123 | break; |
112 | } |
124 | } |
113 | } |
125 | } |
114 | public void setHeadingColor(string sColor) |
126 | public void setHeadingColor(string sColor) |
115 | { |
127 | { |
116 | switch (sColor) |
128 | switch (sColor) |
117 | { |
129 | { |
- | 130 | case "red": |
|
118 | case "red": |
131 | f7.Fill = new SolidColorBrush(Colors.Red); |
119 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative)); |
132 | // heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative)); |
120 | break; |
133 | break; |
- | 134 | case "green": |
|
121 | case "green": |
135 | f7.Fill = new SolidColorBrush(Colors.SpringGreen); |
122 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingGreen.png", System.UriKind.Relative)); |
136 | // heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingGreen.png", System.UriKind.Relative)); |
123 | break; |
137 | break; |
- | 138 | case "blue": |
|
124 | case "blue": |
139 | f7.Fill = new SolidColorBrush(Colors.Cyan); |
125 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingBlue.png", System.UriKind.Relative)); |
140 | // heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingBlue.png", System.UriKind.Relative)); |
126 | break; |
141 | break; |
- | 142 | case "yellow": |
|
127 | case "yellow": |
143 | f7.Fill = new SolidColorBrush(Colors.Yellow); |
128 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingYellow.png", System.UriKind.Relative)); |
144 | // heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingYellow.png", System.UriKind.Relative)); |
129 | break; |
145 | break; |
- | 146 | case "pink": |
|
130 | case "pink": |
147 | f7.Fill = new SolidColorBrush(Colors.Magenta); |
131 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingPink.png", System.UriKind.Relative)); |
148 | // heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingPink.png", System.UriKind.Relative)); |
Line 132... | Line 149... | ||
132 | break; |
149 | break; |
- | 150 | ||
133 | 151 | default: |
|
134 | default: |
152 | f7.Fill = new SolidColorBrush(Colors.Red); |
135 | heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative)); |
153 | // heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative)); |
136 | break; |
154 | break; |
137 | } |
155 | } |
138 | } |
156 | } |