示例#1
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            StationStat stat    = value as StationStat;
            var         sub     = stat.End.Time.Subtract(stat.Start.Time);
            var         minutes = sub.Minutes;
            var         seconds = sub.Seconds;

            return(String.Format("{0}m {1}s", minutes, seconds));

            return(sub);
        }
示例#2
0
        //private double GetPositionAngle(StationStat forecast, ISSPosition position)
        //{

        //}

        private void AddMarker(StationStat forecast, ISSPosition startPosition, Color color)
        {
            SpotData spotData;
            // ArrorMarkerControl rectangle;
            Point point;

            spotData = this.GetSpotData(forecast.Start, forecast.Brightness);

            var rectangle = new ArrorMarkerControl {
                Width = 120, Height = 450
            };                                                                    // new Rectangle { Width = 90, Height = 90, RadiusX = 90, RadiusY = 60, Fill = new SolidColorBrush(color) };

            //   var rectangle =new Rectangle { Width = 90, Height = 90, RadiusX = 90, RadiusY = 60, Fill = new SolidColorBrush(color) };
            arPanel.Children.Add(rectangle);


            point = new Point(startPosition.Altitute, startPosition.Azimuth);
            ARPanel.SetDirection(rectangle, point);
            rectangle.DataContext = spotData;
            //rectangle.Tap += (s, e) =>
            //{

            //};
        }