20,12 → 20,38 |
/// </summary> |
public partial class Circle : UserControl |
{ |
public Circle() |
{ |
InitializeComponent(); |
} |
public Circle() |
{ |
InitializeComponent(); |
} |
|
public PointLatLng Center; |
public PointLatLng Bound; |
} |
public PointLatLng Center; |
public PointLatLng Bound; |
public void setColor(string sColor) |
{ |
switch (sColor) |
{ |
case "red": |
e.Stroke = new SolidColorBrush(Colors.Red); |
break; |
case "green": |
e.Stroke = new SolidColorBrush(Colors.SpringGreen); |
break; |
case "blue": |
e.Stroke = new SolidColorBrush(Colors.Cyan); |
break; |
case "yellow": |
e.Stroke = new SolidColorBrush(Colors.Yellow); |
break; |
case "pink": |
e.Stroke = new SolidColorBrush(Colors.Magenta); |
break; |
|
default: |
e.Stroke = new SolidColorBrush(Colors.Red); |
break; |
} |
} |
} |
|
} |