Exemple #1
0
        public void FillContactList()
        {
            TreeIter iter;
            int      count = 0;

            if (!ListIdentifier.GetActiveIter(out iter))
            {
                return;
            }

            contact_store.Clear();

            // Add contacts to treeview
            foreach (string id in database)
            {
                Hashtable tbl = database.Compile(id, database.EnumNamespace);

                if (tbl ["table"] != null && tbl ["table"] as string == "BF")
                {
                    contact_store.AppendValues(tbl ["id"], tbl [contact_show_type_store.GetValue(iter, 0)]);
                    count++;
                }
            }

            SetStatusMessage(String.Format(Catalog.GetPluralString("Added {0} contact", "Added {0} contacts", count), count));
        }
Exemple #2
0
 void addEmails(Dictionary <string, EmailList> emails, MorkDatabase database)
 {
     foreach (string id in database)
     {
         Hashtable contact_row = database.Compile(id, database.EnumNamespace);
         AddThunderbirdEmail(emails, contact_row);
     }
 }