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