Пример #1
0
        public StopModel()
        {
            InitializeComponent();
            Loaded += StopModel_Loaded;

            _estacionRepository = new EstacionRepository();
            estaciones          = _estacionRepository.GetEstaciones();
        }
Пример #2
0
 public static void CargarEstaciones()
 {
     try
     {
         estaciones = _estacionRepository.GetEstaciones();
     }
     catch (Exception)
     {
         MessageBox.Show("Error al conectar con el servidor. Revise la cadena de conexión.");
     }
 }