Exemplo n.º 1
0
 public MainModel(IGraphModel graphModel, IFlightDataModel flightDataModel, ITimeManagerModel timeManagerModel)
 {
     this.graphModel       = graphModel;
     this.flightDataModel  = flightDataModel;
     this.timeManagerModel = timeManagerModel;
     indexLock             = new object();
 }
Exemplo n.º 2
0
        public FlightDataViewModel(IFlightDataModel model)
        {
            this.model = model;
            model.notifyPropertyChanged += (object sender, EventArgs e) =>
            {
                if (e as InformationChangedEventArgs != null)
                {
                    InformationChangedEventArgs args = e as InformationChangedEventArgs;
                    if (args.Info == PropertyChangedEventArgs.InfoVal.InfoChanged)
                    {
                        // Roll = args.Roll;
                        // Pitch = args.Pitch;
                        // Yaw = args.Yaw;

                        // tbHeight.Text = args.Altimeter.ToString();
                        // tbAirSpeed.Text = args.AirSpeed.ToString();
                        // angleOfRoll.Angle = args.Roll;
                        // angleOfPitch.Angle = args.Pitch;
                        // angleOfYaw.Angle = args.Yaw;

                        notifyPropertyChanged(this, args);
                    }
                }
            };
        }
Exemplo n.º 3
0
 public void SetFlightDataModel(IFlightDataModel model)
 {
     this.flightDataModel = model;
 }