Beispiel #1
0
        private void Application_Startup(object sender, StartupEventArgs args)
        {
            ITelnetClient telnetClient = new TelnetClient();

            model = new Model(telnetClient);
            model.Connect(ConfigurationManager.AppSettings.Get("DEFAULT_IP"), int.Parse(ConfigurationManager.AppSettings.Get("DEFAULT_PORT")));
            model.Start();

            dashboardViewModel = new DashboardViewModel(model);
            mapViewModel       = new MapViewModel(model);

            connectionVM = new ConnectionPanelVM(model);
            errorsVM     = new ErrorsPanelVM(model);
            controellsVM = new ControllersPanelVM(model);
        }
Beispiel #2
0
 public SimulatorModel(TelnetClient telnetClient)
 {
     this.telnetClient = telnetClient;
     stop          = false;
     commandsQueue = new Queue <string>();
 }