// 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); }
// Setting the control board view model. public void SetControlBoardVM(ControlBoardVM controlBoard_VM) { this.controlBoardVM = controlBoard_VM; }