public MainWindow() { InitializeComponent(); _vm = new FGVM(new FGM(new Client())); DataContext = _vm; _home = new HomePage(_vm); Navigate(_home); }
public Simulator(FGVM vm) { InitializeComponent(); _vm = vm; DataContext = vm; _cbvm = new ControlBarVM(_vm.GetModel()); _fcvm = new FileComponentVM(_vm.GetModel()); _fpvm = new FeaturesPanelVM(_vm.GetModel()); _fegvm = new FeaturesGraphsVM(_vm.GetModel()); _fivm = new FlightInstrumentsVM(_vm.GetModel()); _jvm = new JoystickVM(_vm.GetModel()); _alvm = new AnomaliesListVM(_vm.GetModel()); _mdvm = new MultiDimensionalModelVM(_vm.GetModel()); controlbar.DataContext = _cbvm; fileselector.DataContext = _fcvm; features.DataContext = _fpvm; _fpvm.IntrestingPropertyChanged += ChangeAnnoatation; featuregraphs.DataContext = _fegvm; flightinstruments.DataContext = _fivm; joystick.DataContext = _jvm; anomalies.DataContext = _alvm; _fixedAnnotation = featuregraphs.MyPlot.Annotations[0]; }
public HomePage(FGVM vm) { DataContext = vm; InitializeComponent(); _vm = vm; }