Example #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);
        }