public PersonasViewModel()
        {
            _sqliteService = new SQliteService();

            this.PersonasLista = new ObservableCollection <PersonaItemViewModel>();

            this.ResetList();
            this.InitEventos();

            this.GoPreferencesCommand = new Command(GoPreferences);
            this.AddCommand           = new Command(GoPersona);
            this.SearchCommand        = new Command(FilterList);
            this.RefreshCommand       = new Command(ResetList);
        }
        public PersonaViewModel(Persona per)
        {
            if (per != null)
            {
                this.Persona         = new Persona(per);
                this.IsDeleteVisible = true;
            }
            else
            {
                this.Persona = new Persona();
            }
            this.InitValidations();
            this.SetDataValidate();
            _sqliteService = new SQliteService();

            this.InitCommand();
            this.ValidateControlCommand = new Command <string>(ValidateControl);
        }