///<summary>Raises the PersonSelecting event.</summary> ///<returns>False if the event was cancelled.</returns> bool RaisePersonSelecting(Person person, PersonSelectionReason method) { var args = new PersonSelectingEventArgs(person, method); OnPersonSelecting(args); return(!args.Cancel); }
///<summary>Creates a PersonSelectingEventArgs instance.</summary> public PersonSelectingEventArgs(Person person, PersonSelectionReason method) { if (person == null) { throw new ArgumentNullException("person"); } Person = person; Method = method; }
///<summary>Creates a PersonSelectingEventArgs instance.</summary> public PersonSelectingEventArgs(Person person, PersonSelectionReason method) { if (person == null) throw new ArgumentNullException("person"); Person = person; Method = method; }
///<summary>Raises the PersonSelecting event.</summary> ///<returns>False if the event was cancelled.</returns> bool RaisePersonSelecting(Person person, PersonSelectionReason method) { var args = new PersonSelectingEventArgs(person, method); OnPersonSelecting(args); return !args.Cancel; }