public PlayControllerViewModel(FlightSimulatorModel fsmodel) { this.fsmodel = fsmodel; fsmodel.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { notifyPropertyChanged("VM_" + e.PropertyName); }; }
private void Application_Startup(object sender, StartupEventArgs e) { //Program.OperateDLL("C:/Users/NicoleS/source/repos/FlightSimulator/plugins/CircularDetect.dll"); ISetModel setModel = new SetModel(); SetViewModel setVM = new SetViewModel(setModel); IFlightSimulatorModel simModel = new FlightSimulatorModel(setModel); FlightSimulatorViewModel flightSimVM = new FlightSimulatorViewModel(simModel); // does main window run simultanasle? MainWindow window = new MainWindow(setVM, flightSimVM); window.ShowDialog(); }