diff --git a/Demo.WindowsPresentation/Controls/TrolleyTooltip.xaml.cs b/Demo.WindowsPresentation/Controls/TrolleyTooltip.xaml.cs new file mode 100644 --- /dev/null +++ b/Demo.WindowsPresentation/Controls/TrolleyTooltip.xaml.cs @@ -0,0 +1,28 @@ +using System.Windows.Controls; +using GMap.NET; +using Demo.WindowsForms; + +namespace Demo.WindowsPresentation.Controls +{ + /// + /// Interaction logic for TrolleyTooltip.xaml + /// + public partial class TrolleyTooltip : UserControl + { + public TrolleyTooltip() + { + InitializeComponent(); + } + + public void SetValues(string type, VehicleData vl) + { + Device.Text = vl.Id.ToString(); + LineNum.Text = type + " " + vl.Line; + StopName.Text = vl.LastStop; + TrackType.Text = vl.TrackType; + TimeGps.Text = vl.Time; + Area.Text = vl.AreaName; + Street.Text = vl.StreetName; + } + } +}