}//ListAll private void ReadGrupoList_Loaded(object sender, RoutedEventArgs e) { ReadAllContactsList dbcontacts = new ReadAllContactsList(); DB_ContactList = dbcontacts.GetAllContacts();//Vai buscar os contactos if (DB_ContactList.Count > 0) { } //listagem.ItemsSource = DB_ContactList.OrderByDescending(i => i.C_nome).ToList();// }
private void ReadContactList_Loaded(object sender, RoutedEventArgs e) { ReadAllContactsList dbcontacts = new ReadAllContactsList(); DB_ContactList = dbcontacts.GetAllContacts();//Vai buscar os contactos if (DB_ContactList.Count > 0) { } lista.ItemsSource = DB_ContactList.OrderBy(i => i.Model.C_nome).ToList();// }//ListAll