Esempio n. 1
0
        public override bool ShouldPerformDefaultActionForPerson(ABPersonViewController 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);
        }
Esempio n. 2
0
		public override bool ShouldPerformDefaultActionForPerson (ABPersonViewController 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;
		}
Esempio n. 3
0
 public override bool ShouldPerformDefaultActionForPerson(ABPersonViewController personViewController, ABPerson person, int propertyId, int identifier)
 {
Esempio n. 4
0
		public override bool ShouldPerformDefaultActionForPerson (ABPersonViewController personViewController, ABPerson person, int propertyId, int identifier)
		{