public async void LoadDataContact()
        {
            Func <Contact, bool> searchQueryExpr         = Search();
            Func <Contact, bool> searchQueryExprIfLetter = LetterSelect();

            ContactVM.LoadContacts((await _service.GetContacts()).Where(c => searchQueryExpr(c) && searchQueryExprIfLetter(c)));
        }
Beispiel #2
0
        /// <summary>
        /// 获取联系人
        /// </summary>
        private void LoadContacts()
        {
            var contacts = _dataService.GetContacts();

            if (contacts != null)
            {
                // 拿到转换集合类型后的联系人
                ContactsVM.LoadContacts(_dataService.GetContacts());
                IsHidden = true;
            }
        }
Beispiel #3
0
 private void LoadContacts()
 {
     ContactsVM.LoadContacts(_dataService.GetContacts());
 }
Beispiel #4
0
        private void LoadFavorites()
        {
            var fav = m_service.GetContacts().Where(c => c.IsFavorite);

            ContactsVM.LoadContacts(fav);
        }