Rev 2406 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2406 | Rev 2409 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | /// <summary> |
18 | /// <summary> |
19 | /// Interaction logic for Circle.xaml |
19 | /// Interaction logic for Circle.xaml |
20 | /// </summary> |
20 | /// </summary> |
21 | public partial class Circle : UserControl |
21 | public partial class Circle : UserControl |
22 | { |
22 | { |
23 | public Circle() |
23 | public Circle() |
24 | { |
24 | { |
25 | InitializeComponent(); |
25 | InitializeComponent(); |
- | 26 | } |
|
- | 27 | ||
- | 28 | public PointLatLng Center; |
|
- | 29 | public PointLatLng Bound; |
|
- | 30 | public void setColor(string sColor) |
|
- | 31 | { |
|
- | 32 | switch (sColor) |
|
- | 33 | { |
|
- | 34 | case "red": |
|
- | 35 | e.Stroke = new SolidColorBrush(Colors.Red); |
|
- | 36 | break; |
|
- | 37 | case "green": |
|
- | 38 | e.Stroke = new SolidColorBrush(Colors.SpringGreen); |
|
- | 39 | break; |
|
- | 40 | case "blue": |
|
- | 41 | e.Stroke = new SolidColorBrush(Colors.Cyan); |
|
- | 42 | break; |
|
- | 43 | case "yellow": |
|
- | 44 | e.Stroke = new SolidColorBrush(Colors.Yellow); |
|
- | 45 | break; |
|
- | 46 | case "pink": |
|
- | 47 | e.Stroke = new SolidColorBrush(Colors.Magenta); |
|
- | 48 | break; |
|
- | 49 | ||
- | 50 | default: |
|
- | 51 | e.Stroke = new SolidColorBrush(Colors.Red); |
|
- | 52 | break; |
|
- | 53 | } |
|
26 | } |
54 | } |
- | 55 | } |
|
Line 27... | Line -... | ||
27 | - | ||
28 | public PointLatLng Center; |
- | |
29 | public PointLatLng Bound; |
- | |
30 | } |
56 |