Exemplo n.º 1
0
        public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, IntPtr selectedPerson)
        {
            var e = new ABPeoplePickerSelectPersonEventArgs(selectedPerson == IntPtr.Zero ? null : new ABPerson(selectedPerson, peoplePicker.AddressBook));

            peoplePicker.OnSelectPerson(e);
            return(e.Continue);
        }
Exemplo n.º 2
0
        public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
        {
            var e = new ABPeoplePickerSelectPersonEventArgs(selectedPerson);

            peoplePicker.OnSelectPerson(e);
            return(e.Continue);
        }
Exemplo n.º 3
0
        public override void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier)
        {
            ABPersonProperty property = ABPersonPropertyId.ToPersonProperty(propertyId);
            int?id = identifier == ABRecord.InvalidPropertyId ? null : (int?)identifier;

            var e = new ABPeoplePickerPerformAction2EventArgs(selectedPerson, property, id);

            peoplePicker.OnPerformAction2(e);
        }
Exemplo n.º 4
0
        public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, IntPtr selectedPerson, int propertyId, int identifier)
        {
            ABPerson         person   = selectedPerson == IntPtr.Zero ? null : new ABPerson(selectedPerson, peoplePicker.AddressBook);
            ABPersonProperty property = ABPersonPropertyId.ToPersonProperty(propertyId);
            int?id = identifier == ABRecord.InvalidPropertyId ? null : (int?)identifier;

            var e = new ABPeoplePickerPerformActionEventArgs(person, property, id);

            peoplePicker.OnPerformAction(e);
            return(e.Continue);
        }
Exemplo n.º 5
0
 public override void Cancelled(ABPeoplePickerNavigationController peoplePicker)
 {
     peoplePicker.OnCancelled(EventArgs.Empty);
 }
Exemplo n.º 6
0
        public override void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
        {
            var e = new ABPeoplePickerSelectPerson2EventArgs(selectedPerson);

            peoplePicker.OnSelectPerson2(e);
        }