Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a new MWV sentence
 /// </summary>
 public EngineRevolutions(RotationSource source, RotationalSpeed speed, int engineNumber, Ratio pitch)
     : base(OwnTalkerId, Id, DateTimeOffset.UtcNow)
 {
     RotationalSpeed = speed;
     RotationSource  = source;
     EngineNumber    = engineNumber;
     PropellerPitch  = pitch;
     Valid           = true;
 }
Ejemplo n.º 2
0
        public ArPageViewModel(INavigationService navigationService)
        {
            this.navigationService = navigationService;
            repository = new HappenedHereRepository();
            geowatcher = new GeoCoordinateWatcher(GeoPositionAccuracy.Default);
            nearbyCoordinates = new Stack<GeoCoordinate>();
            nearbyStreets = new List<string>();
            searcher = new BingSearch(this);

            isHeadingIndicatorVisible = false;
            isMapVisible = false;
            isWorldViewVisible = true;
            isProgressBarIndeterminate = true;
            overheadMapRotationSource = RotationSource.North;
            headingIndicatorRotationSource = RotationSource.AttitudeHeading;

            toggleHeadingText = AppResources.ToggleHeading;
            toggleHeadingIcon = new Uri("/Assets/ArPage/AppBar/heading.png", UriKind.Relative);
            showMapText = AppResources.ShowMap;
            showMapIcon = new Uri("/Assets/ArPage/AppBar/map.png", UriKind.Relative);
            refreshArticlesText = AppResources.RefreshArticles;
            articleItems = new ObservableCollection<ARItem>();
        }