Пример #1
0
        //private Point MouseDownLocation;
        //bool isPressed = false;
        //public Joystick() { }
        //private double aileron, throttle;

        public Sliders(Model.AircraftModel model, ViewModels.JoystickViewModel joystickVM)
        {
            InitializeComponent();
            this.joystickVM = joystickVM; //Needs to be passed ffrom mainwindow
            DataContext     = joystickVM;
            Joystick joys = new Joystick(model, joystickVM);

            joystickSpace.Children.Add(joys);
        }
Пример #2
0
 public Map(Model.AircraftModel model, ViewModels.MapViewModel mapVM)
 {
     InitializeComponent();
     this.mapVM  = mapVM;
     DataContext = mapVM;
 }
Пример #3
0
        //public Joystick() { }


        public Joystick(Model.AircraftModel model, ViewModels.JoystickViewModel joystickVM)
        {
            InitializeComponent();
            this.joystickVM = joystickVM;
            DataContext     = joystickVM;
        }
Пример #4
0
 public DashBoard(Model.AircraftModel model, ViewModels.DashBoardViewModel dashboardVM)
 {
     InitializeComponent();
     this.dashboardVM = dashboardVM;
     DataContext      = dashboardVM;
 }