Exemplo n.º 1
0
        public static void getContact(string number, contacts_Callback callback)
        {
            Contacts cons = new Contacts();

            cons.SearchCompleted += new EventHandler <ContactsSearchEventArgs>(callback);
            cons.SearchAsync(number, FilterKind.PhoneNumber, "State string 1");
        }
Exemplo n.º 2
0
        public static void getContacts(contacts_Callback callback)
        {
            st = Stopwatch.StartNew();
            Debug.WriteLine("Contact Scanning started .....");
            cState = ContactScanState.ADDBOOK_SCANNING;
            Contacts cons = new Contacts();

            cons.SearchCompleted += new EventHandler <ContactsSearchEventArgs>(callback);
            cons.SearchAsync(string.Empty, FilterKind.None, "State string 1");
        }