Пример #1
0
 public ContactsSelector()
 {
     InitializeComponent();
     this._initialContacts = ContactStore.GetAllContacts();
     foreach (Contact c in this._initialContacts)
     {
         this._matchingContacts.Add(c);
     }
     this.redraw();
 }
Пример #2
0
        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);
        }