예제 #1
0
 public ChatsViewModel()
 {
     Chats            = ServiceWS.GetChats();
     AdicionarCommand = new Command(Adicionar);
     OrdenarCommand   = new Command(Ordenar);
     AtualizarCommand = new Command(Atualizar);
 }
예제 #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;
            }
        }
예제 #4
0
 private void Atualizar()
 {
     Chats = ServiceWS.GetChats();
 }
예제 #5
0
 public void Atualizar()
 {
     Chats = ServiceWS.GetChats();
 }
예제 #6
0
 private void RefreshChat()
 {
     Chats = ServiceWS.GetChats();
 }