Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2406 | - | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Windows; |
||
6 | using System.Windows.Controls; |
||
7 | using System.Windows.Data; |
||
8 | using System.Windows.Documents; |
||
9 | using System.Windows.Input; |
||
10 | using System.Windows.Media; |
||
11 | using System.Windows.Media.Imaging; |
||
12 | using System.Windows.Navigation; |
||
13 | using System.Windows.Shapes; |
||
14 | using GMap.NET; |
||
15 | |||
16 | namespace MKLiveView.GMapCustomMarkers |
||
17 | { |
||
18 | /// <summary> |
||
19 | /// Interaction logic for Circle.xaml |
||
20 | /// </summary> |
||
21 | public partial class Circle : UserControl |
||
22 | { |
||
2409 | - | 23 | public Circle() |
24 | { |
||
25 | InitializeComponent(); |
||
26 | } |
||
2406 | - | 27 | |
2409 | - | 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 | } |
||
54 | } |
||
55 | } |
||
56 | |||
2406 | - | 57 | } |