Rev 2406 |
Blame |
Last modification |
View Log
| RSS feed
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using GMap.NET;
namespace MKLiveView
.GMapCustomMarkers
{
/// <summary>
/// Interaction logic for Circle.xaml
/// </summary>
public partial class Circle
: UserControl
{
public Circle
()
{
InitializeComponent
();
}
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;
}
}
}
}