Exemple #1
0
        /// <summary>
        /// ACTUALIZACIÓN COMBOBOX UBICACIONES
        /// Trae las ubicaciones almacenadas en el archivo ubicacion.txt
        /// </summary>

        protected void ActualizarCombobox()
        {
            Ubicacion     ubicacion   = new Ubicacion();
            List <string> Ubicaciones = ubicacion.LeerUbicaciones();

            comboxUbicacion.ItemsSource = Ubicaciones;
            Console.WriteLine();

            Activo nes = new Activo();
        }
Exemple #2
0
        protected void ActualizarListview()
        {
            Ubicacion        ubicacion        = new Ubicacion();
            List <Ubicacion> ListaUbicaciones = new List <Ubicacion>();
            List <string>    listaux          = new List <string>();

            listaux = ubicacion.LeerUbicaciones();
            for (int i = 0; i < listaux.Count; i++)
            {
                ListaUbicaciones.Add(new Ubicacion());
                ListaUbicaciones[i].nombreUbicacion = listaux[i];
            }
            listViewUbicacion.ItemsSource = ListaUbicaciones;
            Console.WriteLine("prueba");
        }