예제 #1
0
 public EditarPerfilViewModel()
 {
     loadDataHandler = new LoadDataHandler();
     PopUp           = new MessagePopupView();
     Usuario         = (UsuarioModel)Application.Current.Properties["Usuario"];
     IsEditEnable    = false;
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
     AddValidations();
 }
예제 #2
0
 /// <summary>
 /// Loads the data and marks this instance as loaded.
 /// </summary>
 /// <param name="handler">The handler for loading the data.</param>
 public void LoadData(LoadDataHandler handler)
 {
     try
     {
         // Load the data
         this.Data = handler();
     }
     finally
     {
         // Always set the event - otherwise other threads could be waiting forever!
         this.manualEvent.Set();
     }
 }
예제 #3
0
 /// <summary>
 /// Loads the data and marks this instance as loaded.
 /// </summary>
 /// <param name="handler">The handler for loading the data.</param>
 public void LoadData(LoadDataHandler handler)
 {
     try
     {
         // Load the data
         this.Data = handler();
     }
     finally
     {
         // Always set the event - otherwise other threads could be waiting forever!
         this.manualEvent.Set();
     }
 }
예제 #4
0
 public PublicacionViewModel()
 {
     loadDataHandler  = new LoadDataHandler();
     UsuarioMemoria   = (UsuarioModel)Application.Current.Properties["Usuario"];
     Publicaciones    = new ObservableCollection <PublicacionModel>();
     Usuario          = new UsuarioModel();
     EstaActualizando = false;
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
     TraerPublicaciones();
     PopUp = new MessagePopupView();
 }
예제 #5
0
        public LoginViewModel()
        {
            InicioSesion        = new Command(InicioSesionCommand);
            googleClientManager = CrossGoogleClient.Current;
            loadDataHandler     = new LoadDataHandler();
            string urlCretateUsuario = Endpoints.URL_SERVIDOR + Endpoints.CREATE_USUARIO;
            string urlGetUsuario     = Endpoints.URL_SERVIDOR + Endpoints.GET_USUARIO;


            CreateUsuario = new SelectRequest <UsuarioModel>();
            CreateUsuario.SelectStrategy("POST", urlCretateUsuario);
            GetUsuario = new SelectRequest <UsuarioModel>();
            GetUsuario.SelectStrategy("GET", urlGetUsuario);
            PopUp = new MessagePopupView();
        }
예제 #6
0
 public App()
 {
     InitializeComponent();
     LoadData = new LoadDataHandler();
     CheckLogin();
     MainPage = new NavigationPage(new LoginView());
     if (IsLogin)
     {
         MainPage = new NavigationPage(new MainPage());
     }
     else
     {
         MainPage = new NavigationPage(new LoginView());
     }
 }
 public UsuarioViewModel()
 {
     PopUp           = new MessagePopupView();
     loadDataHandler = new LoadDataHandler();
     Usuario         = (UsuarioModel)Application.Current.Properties["UsuarioBusqueda"];
     UsuarioMemoria  = (UsuarioModel)Application.Current.Properties["Usuario"];
     IsSeguirEnable  = true;
     InitializeRequest();
     InitializeCommands();
     ActualizarPerfil();
     if (IsSeguirEnable)
     {
         SalidaButton = "Seguir";
     }
     else
     {
         SalidaButton = "Siguiendo";
     }
 }
예제 #8
0
 public w_enableStandby()
 {
     InitializeComponent();
     loadData = new LoadDataHandler();
 }
예제 #9
0
 public App()
 {
     InitializeComponent();
     FlowListView.Init();
     LoadData = new LoadDataHandler();
 }