Exemplo n.º 1
0
 public ChatsViewModel()
 {
     Chats            = ServiceWS.GetChats();
     AdicionarCommand = new Command(Adicionar);
     OrdenarCommand   = new Command(Ordenar);
     AtualizarCommand = new Command(Atualizar);
 }
Exemplo n.º 2
0
 public ChatViewModel()
 {
     Chats          = ServiceWS.GetChats();
     AddCommand     = new Command(AddChat);
     SortCommand    = new Command(SortChat);
     RefreshCommand = new Command(RefreshChat);
 }
        private async Task CarregarChats()
        {
            try {
                Carregando = true;
                Chats      = await ServiceWS.GetChats();

                Carregando = false;
            } catch (Exception e) {
                Carregando = false;
            }
        }
Exemplo n.º 4
0
 private void Atualizar()
 {
     Chats = ServiceWS.GetChats();
 }
Exemplo n.º 5
0
 public void Atualizar()
 {
     Chats = ServiceWS.GetChats();
 }
Exemplo n.º 6
0
 private void RefreshChat()
 {
     Chats = ServiceWS.GetChats();
 }