public override void Suspend() { if (MyLocationsVM != null) { MyLocationsVM.Suspend(); } if (_watcher != null) { _watcher.Stop(); } base.Suspend(); }
public override void Initialize() { if (MyLocationsVM != null) { MyLocationsVM.Initialize(); } if (!MySettingsVM.EnableLocation) { MessageBox.Show("Location Services are disabled for this application. Application cannot be used without location services. Please read the privacy statement and activate location services", "Location Services", MessageBoxButton.OK); } else if (_watcher != null) { _watcher.Start(); _watcher.PositionChanged += new EventHandler <GeoPositionChangedEventArgs <GeoCoordinate> >(_watcher_PositionChanged); } base.Initialize(); }
public override void Dispose() { MyLocationsVM.Dispose(); base.Dispose(); }