void Awake() { messagePopupView = FindObjectOfType <MessagePopupView>(); cancelButton.onClick.AddListener(HideExpandPanel); hideButton.onClick.AddListener(HideExpandPanel); removeButton.onClick.AddListener(RemoveApi); openExpandPanel.onClick.AddListener(OpenExpandpanel); }
void Awake() { messagePopupView = FindObjectOfType <MessagePopupView>(); cancelButton.onClick.AddListener(HideExpandPanel); hideButton.onClick.AddListener(HideExpandPanel); addButton.onClick.AddListener(AddApi); openExpandPanel.onClick.AddListener(OpenExpandpanel); input.text = string.Empty; }
public override void Awake() { base.Awake(); messagePopupView = FindObjectOfType <MessagePopupView>(); settingApiAddController.OnExpandPanelOpen += ChangeState; settingApiRemoveController.OnExpandPanelOpen += ChangeState; settingApiAddController.OnApiAdded += InitDropdown; settingApiRemoveController.OnApiRemoved += InitDropdown; }
public EditarPerfilViewModel() { loadDataHandler = new LoadDataHandler(); PopUp = new MessagePopupView(); Usuario = (UsuarioModel)Application.Current.Properties["Usuario"]; IsEditEnable = false; InitializeRequest(); InitializeCommands(); InitializeFields(); AddValidations(); }
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(); }
public NuevaPublicacionViewModel() { Usuario = (UsuarioModel)Application.Current.Properties["Usuario"]; IsEnableSend = false; SeleccionarFoto = new Command(async() => await SeleccionarFotoCommand(), () => true); Enviar = new Command(async() => await EnviarCommand(), () => IsEnableSend); memoryStream = new MemoryStream(); string urlCreatePublicacion = Endpoints.URL_SERVIDOR + Endpoints.CREATE_PUBLICACION; CreatePublicacionRequest = new SelectRequest <PublicacionModel>(); CreatePublicacionRequest.SelectStrategy("POST", urlCreatePublicacion); PopUp = new MessagePopupView(); }
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(); }
public ComentarioViewModel() { PopUp = new MessagePopupView(); Usuario = (UsuarioModel)Application.Current.Properties["Usuario"]; Publicacion = (PublicacionModel)Application.Current.Properties["Publicacion"]; Like = false; SalidaButton = "Gray"; IsCommentEnable = false; IsCreatorEnable = Publicacion.Apodo.Equals(Usuario.Apodo); IsCommentCreatorEnable = false; InitializeRequest(); InitializeCommands(); InitializeFields(); AddValidations(); TraerPublicacion(); }
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"; } }