public MainWindow() { InitializeComponent(); flightController = FlightController.GetInstance; fileHandler = new FileHandler(); passData_VM passdata = new passData_VM(); DataViewer data_viewer = new DataViewer(); data_viewer.SetVM(passdata); JoyStick_view joystick = new JoyStick_view(); joystick.SetVM(passdata); }
public void SetVM(passData_VM vm) { this.vm = vm; DataContext = vm; vm.PropertyChanged += Vm_PropertyChanged; }
public void SetVM(passData_VM vm) { this.vm = vm; DataContext = vm; }