示例#1
0
        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);
        }
示例#2
0
 public void SetVM(passData_VM vm)
 {
     this.vm             = vm;
     DataContext         = vm;
     vm.PropertyChanged += Vm_PropertyChanged;
 }
示例#3
0
 public void SetVM(passData_VM vm)
 {
     this.vm     = vm;
     DataContext = vm;
 }