コード例 #1
0
 public ContactsSelector()
 {
     InitializeComponent();
     this._initialContacts = ContactStore.GetAllContacts();
     foreach (Contact c in this._initialContacts)
     {
         this._matchingContacts.Add(c);
     }
     this.redraw();
 }
コード例 #2
0
ファイル: ContactsList.cs プロジェクト: vaginessa/WinApp.NET
        private List <string> refreshContactPictures()
        {
            Contact[]     contacts = ContactStore.GetAllContacts();
            List <string> toSync   = new List <string>();

            foreach (Contact c in contacts)
            {
                string path = ChatWindow.getCacheImagePath(c.jid);
                if (!File.Exists(path))
                {
                    toSync.Add(c.jid);
                }
            }
            return(toSync);
        }