Пример #1
0
 public void LoadparqueaderoSeleccionado(ParqueaderoItemViewModel parqueaderoSelected)
 {
     ParqueaderoSelected = parqueaderoSelected;//modificacion
     parqueaderoSelected.NombreTipoParqueadero = parqueaderoSelected.Id_Tipo_Parking == 1 ? "Privado" : "Público";
 }
Пример #2
0
        public MainViewModel()
        {
            instance            = this;
            chart               = new SfChart();
            navigationService   = new NavigationService();
            Login               = new LoginViewModel();
            ContactList         = new ObservableCollection <ContactItemViewModel>();
            OrderInfoCollection = new ObservableCollection <OrderInfoItemViewModel>();
            DataPoints          = new ObservableCollection <ChartDataPoint>();
            //CierreVenta = new CierreVentaItemViewModel();
            this.cierreVenta = new CierreVentaItemViewModel();
            Usuarios         = new ObservableCollection <UsuarioItemViewModel>();
            NewUser          = new NewUserViewModel();

            Data  = new List <Person>();
            Data2 = new List <Person>();
            //INavigation navigation=new INavigation();
            Places          = new PlacesViewModel();
            ReservaIdentity = new ReservaViewModel();
            //LoadMenu();
            LoadData();
            LoadContact();
            LoadOrderInfo();
            LoadUsuarios();
            LoadDataPoint();

            /*monkeys**/
            Monkeys        = MonkeyHelper.Monkeys;
            MonkeysGrouped = MonkeyHelper.MonkeysGrouped;
            Zoos           = new ObservableCollection <Zoo>
            {
                new Zoo
                {
                    ImageUrl = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/23c1dd13-333a-459e-9e23-c3784e7cb434/2016-06-02_1049.png",
                    Name     = "Woodland Park Zoo"
                },
                new Zoo
                {
                    ImageUrl = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png",
                    Name     = "Cleveland Zoo"
                },
                new Zoo
                {
                    ImageUrl = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/e8179889-8189-4acb-bac5-812611199a03/2016-06-02_1053.png",
                    Name     = "Phoenix Zoo"
                }
            };
            /***/

            /*monkeys**/
            Users        = UserHelper.Users;
            UsersGrouped = UserHelper.UsersGrouped;
            Users        = new ObservableCollection <User>
            {
                //new User
                //{
                //    Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/23c1dd13-333a-459e-9e23-c3784e7cb434/2016-06-02_1049.png",
                //    FirstName = "Woodland Park Zoo"
                //},
                // new User
                //{
                //    Picture =    "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png",
                //    FirstName= "Cleveland Zoo"
                // },
                //new User
                //{
                //    Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/e8179889-8189-4acb-bac5-812611199a03/2016-06-02_1053.png",
                //    FirstName = "Phoenix Zoo"
                //}


                new User {
                    FirstName = "Aaron", LastName = "Alvarez", MotherLastName = "Bartra", DNI = "11200033", Cargo = "Jefe", Email = "*****@*****.**", Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/23c1dd13-333a-459e-9e23-c3784e7cb434/2016-06-02_1049.png"
                },
                new User {
                    FirstName = "Luis", LastName = "Alvarez", MotherLastName = "Caballero", DNI = "11200666", Cargo = "Jefe", Email = "*****@*****.**", Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png"
                },
                new User {
                    FirstName = "Juan Ramon", LastName = "Riveiro", MotherLastName = "Carrillo", DNI = "099200033", Cargo = "Rol0", Email = "*****@*****.**", Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png"
                },
                new User {
                    FirstName = "Ruben Dario", LastName = "Cuba", MotherLastName = "Postmodernismo", DNI = "11200055", Cargo = "Rol0", Email = "*****@*****.**"
                },
                new User {
                    FirstName = "Juan Ramon", LastName = "Riveiro", MotherLastName = "Carrillo", DNI = "099200033", Cargo = "Rol0", Email = "*****@*****.**"
                },
                new User {
                    FirstName = "Aaron", LastName = "Alvarez", MotherLastName = "Bartra", DNI = "11200033", Cargo = "Jefe", Email = "*****@*****.**", Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png"
                },
                new User {
                    FirstName = "Ruben Dario", LastName = "Cuba", MotherLastName = "Postmodernismo", DNI = "11200055", Cargo = "Rol0", Email = "*****@*****.**"
                },
                new User {
                    FirstName = "Zaroastro", LastName = "Alvarez", MotherLastName = "Bartra", DNI = "11200033", Cargo = "Rol1", Email = "*****@*****.**", Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png"
                },
                new User {
                    FirstName = "Jhon Lenon", LastName = "Alvarez", MotherLastName = "Bartra", DNI = "11200033", Cargo = "Rol2", Email = "*****@*****.**"
                },
                new User {
                    FirstName = "Jose Maria", LastName = "Euguren", MotherLastName = "Bartra", DNI = "11200033", Cargo = "Rol3", Email = "*****@*****.**", Picture = "http://content.screencast.com/users/JamesMontemagno/folders/Jing/media/6b60d27e-c1ec-4fe6-bebe-7386d545bb62/2016-06-02_1051.png"
                },
            };
            /***/


            /**Nuestro negocio**/
            SearchParking       = new SearchItemDetailViewModel();
            ParkingRegister     = new ParkItemViewModel();
            Pins                = new ObservableCollection <Pin>();
            PositionsSearch     = new Position();
            PositionsState      = new Position();
            Parqueaderos        = new ObservableCollection <ParqueaderoItemViewModel>();
            UserLoged           = new UserSistemViewModel();
            ParqueaderoSelected = new ParqueaderoItemViewModel();
            Pins2               = new ObservableCollection <Pin>();
            dataService         = new DataService();
            apiService          = new ApiService();
            dialogService       = new DialogService();
            navigationService   = new NavigationService();
            apiService          = new ApiService();
            //Parqueaderos = new ObservableCollection<Parqueadero>();
            //LoadparqueaderoSeleccionado();
            // LoadParqueaderosBuscados();
            /***/
        }