public MainModel(IGraphModel graphModel, IFlightDataModel flightDataModel, ITimeManagerModel timeManagerModel) { this.graphModel = graphModel; this.flightDataModel = flightDataModel; this.timeManagerModel = timeManagerModel; indexLock = new object(); }
public TimeManagerViewModel(ITimeManagerModel model) { this.model = model; model.notifyPropertyChanged += (object sender, EventArgs e) => { if (e as TimeChangedEventArgs != null) { TimeChangedEventArgs args = e as TimeChangedEventArgs; if (args.Info == PropertyChangedEventArgs.InfoVal.TimeChanged) { notifyPropertyChanged(this, args); } } }; }
public void SetTimeManagerModel(ITimeManagerModel model) { this.timeManagerModel = model; }