public ChatsViewModel() { Chats = ServiceWS.GetChats(); AdicionarCommand = new Command(Adicionar); OrdenarCommand = new Command(Ordenar); AtualizarCommand = new Command(Atualizar); }
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; } }
private void Atualizar() { Chats = ServiceWS.GetChats(); }
public void Atualizar() { Chats = ServiceWS.GetChats(); }
private void RefreshChat() { Chats = ServiceWS.GetChats(); }