public MainModel(IGraphModel graphModel, IFlightDataModel flightDataModel, ITimeManagerModel timeManagerModel) { this.graphModel = graphModel; this.flightDataModel = flightDataModel; this.timeManagerModel = timeManagerModel; indexLock = new object(); }
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); } } }; }
public void SetFlightDataModel(IFlightDataModel model) { this.flightDataModel = model; }