Beispiel #1
0
        public async Task Info()
        {
            MessageViewPop popUp = new MessageViewPop();

            ((MessageViewModel)popUp.BindingContext).Message = "Barcelona es el mejor equipo del mundo";
            await PopupNavigation.Instance.PushAsync(popUp);
        }
Beispiel #2
0
        public async Task RecibirUsuarioSeleccionado(TestModel item)
        {
            TestActual = item;
            MessageViewPop popUp = new MessageViewPop();

            ((MessageViewModel)popUp.BindingContext).Message = "El usuario seleccionado es " + TestActual.Nombre;
            await PopupNavigation.Instance.PushAsync(popUp);
        }
 public RegistroViewModel()
 {
     PopUp           = new MessageViewPop();
     Usuario         = new User();
     IsGuardarEnable = true;
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
 }
Beispiel #4
0
 public PlatosViewModel()
 {
     PopUp           = new MessageViewPop();
     Plato           = new PlatoModel();
     IsGuardarEnable = true;
     IsBuscarEnable  = true;
     Platos          = new ObservableCollection <PlatoModel>();
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
 }
Beispiel #5
0
 public CategoryViewModel()
 {
     PopUp            = new MessageViewPop();
     Categoria        = new CategoriaModel();
     IsGuardarEnable  = false;
     IsEliminarEnable = false;
     IsGuardarEditar  = false;
     IsBuscarEnable   = false;
     Categorias       = new ObservableCollection <CategoriaModel>();
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
 }