Exemplo n.º 1
0
        // Initializing the simulator model and all the view models.
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            ISimulatorModel simulatorModel = new SimulatorModel(new MyTelnetClient());

            ConnectVM      = new ConnectVM(simulatorModel);
            DashboardVM    = new DashboardVM(simulatorModel);
            ControlBoardVM = new ControlBoardVM(simulatorModel);
            MapVM          = new MapVM(simulatorModel);
        }
Exemplo n.º 2
0
 // Setting the control board view model.
 public void SetControlBoardVM(ControlBoardVM controlBoard_VM)
 {
     this.controlBoardVM = controlBoard_VM;
 }