コード例 #1
0
 public PlayControllerViewModel(FlightSimulatorModel fsmodel)
 {
     this.fsmodel             = fsmodel;
     fsmodel.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e)
     {
         notifyPropertyChanged("VM_" + e.PropertyName);
     };
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: AmberWein/FlightSimulator
        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();
        }