コード例 #1
0
ファイル: VoiceHelper.cs プロジェクト: NGame1/UWPGmaps
 public VoiceHelper(Route route)
 {
     Route = route;
     MapViewVM.GeoLocate.PositionChanged += GeoLocate_PositionChanged;
     if (AvailableInstance != null)
     {
         AvailableInstance.Dispose();
     }
     AvailableInstance = this;
 }
コード例 #2
0
ファイル: VoiceHelper.cs プロジェクト: ahmed605/WinGo-Maps
 public VoiceHelper(Route route)
 {
     if (AvailableInstance != null)
     {
         AvailableInstance.Dispose();
     }
     Route           = route;
     IsRecalculating = false;
     if (MapViewVM.GeoLocate != null)
     {
         MapViewVM.GeoLocate.PositionChanged += GeoLocate_PositionChanged;
     }
     AvailableInstance = this;
     MapViewVM.StaticVM.StepsTitleProviderVisibility = Windows.UI.Xaml.Visibility.Visible;
     CurrentStep = route.legs.FirstOrDefault().steps.FirstOrDefault();
     View.DirectionsControls.StepsTitleProvider.Provider.CurrentStep = CurrentStep;
 }