public override bool ShouldPerformDefaultActionForPerson(ABUnknownPersonViewController personViewController, IntPtr personId, int propertyId, int identifier)
        {
            ABPerson person = personId == IntPtr.Zero ? null : new ABPerson(personId, personViewController.AddressBook);
#endif
            ABPersonProperty property = ABPersonPropertyId.ToPersonProperty(propertyId);
            int?id = identifier == ABRecord.InvalidPropertyId ? null : (int?)identifier;

            var e = new ABPersonViewPerformDefaultActionEventArgs(person, property, id);
            personViewController.OnPerformDefaultAction(e);
            return(e.ShouldPerformDefaultAction);
        }
示例#2
0
		public override bool ShouldPerformDefaultActionForPerson (ABUnknownPersonViewController personViewController, IntPtr personId, int propertyId, int identifier)
		{
			ABPerson person = personId == IntPtr.Zero ? null : new ABPerson (personId, personViewController.AddressBook);
#endif
			ABPersonProperty property = ABPersonPropertyId.ToPersonProperty (propertyId);
			int? id = identifier == ABRecord.InvalidPropertyId ? null : (int?) identifier;
			
			var e = new ABPersonViewPerformDefaultActionEventArgs (person, property, id);
			personViewController.OnPerformDefaultAction (e);
			return e.ShouldPerformDefaultAction;
		}
 public override bool ShouldPerformDefaultActionForPerson(ABUnknownPersonViewController personViewController, ABPerson person, int propertyId, int identifier)
 {
 public override void DidResolveToPerson(ABUnknownPersonViewController personViewController, IntPtr person)
 {
     personViewController.OnPersonCreated(
         new ABUnknownPersonCreatedEventArgs(person == IntPtr.Zero ? null : new ABPerson(person, personViewController.AddressBook)));
 }
 public override void DidResolveToPerson(ABUnknownPersonViewController personViewController, ABPerson person)
 {
     personViewController.OnPersonCreated(new ABUnknownPersonCreatedEventArgs(person));
 }
示例#6
0
		public override bool ShouldPerformDefaultActionForPerson (ABUnknownPersonViewController personViewController, ABPerson person, int propertyId, int identifier)
		{
示例#7
0
		public override void DidResolveToPerson (ABUnknownPersonViewController personViewController, IntPtr person)
		{
			personViewController.OnPersonCreated (
				new ABUnknownPersonCreatedEventArgs (person == IntPtr.Zero ? null : new ABPerson (person, personViewController.AddressBook)));
		}
示例#8
0
		public override void DidResolveToPerson (ABUnknownPersonViewController personViewController, ABPerson person)
		{
			personViewController.OnPersonCreated (new ABUnknownPersonCreatedEventArgs (person));
		}