Ejemplo n.º 1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     Model     = new MySimulatorModel();
     Errors_VM = new Errors_VM(m);
     Get_VM    = new Get_VM(m);
     Set_VM    = new Set_VM(m);
 }
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            ISimulatorClient client = new MySimulatorClient();
            ISimulatorModel  model  = new MySimulatorModel(client);

            ControlsVM  = new SimulatorControlsViewModel(model);
            DashboardVM = new SimulatorDashboardViewModel(model);
            MapVM       = new SimulatorMapViewModel(model);
        }
Ejemplo n.º 3
0
 void App_Startup(object sender, StartupEventArgs e)
 {
     Model             = new MySimulatorModel();
     DashVM            = new DashBoardViewModel(Model);
     MapViewModel      = new MapViewModel(Model);
     ControlsViewModel = new ControlsViewModel(Model);
     ConnectViewModel  = new ConnectWindowViewModel(Model);
     ErrorViewModel    = new ErrorViewModel(Model);
 }
Ejemplo n.º 4
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            ISimulatorModel model = new MySimulatorModel(new TelnetClient());

            MainVM = new MainViewModel(model);

            ConnectionDefinitionsWindow window = new ConnectionDefinitionsWindow();

            window.Show();
        }
Ejemplo n.º 5
0
        public void Application_Startup(object sender, StartupEventArgs e)
        {
            MySimulatorModel model = new MySimulatorModel();

            MainViewModel = new MainViewModel(model);

            // Create the startup window.
            MainWindow wnd = new MainWindow();

            // Do stuff here, e.g. to the window.
            wnd.Title = "FlightGear Simulator";
            // Show the window.
            wnd.Show();
        }
        public void Application_Startup(object sender, StartupEventArgs e)
        {
            //initialize communication
            // TCPclient tcpclient = new...

            MySimulatorModel model = new MySimulatorModel();

            MainViewModel = new MainViewModel(model);

            // Create the startup window
            MainWindow wnd = new MainWindow();

            // Do stuff here, e.g. to the window
            wnd.Title = "FlightGear Simulator";
            // Show the window
            wnd.Show();
        }