Exemplo n.º 1
0
        ///<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);
        }
Exemplo n.º 2
0
 ///<summary>Creates a PersonSelectingEventArgs instance.</summary>
 public PersonSelectingEventArgs(Person person, PersonSelectionReason method)
 {
     if (person == null)
     {
         throw new ArgumentNullException("person");
     }
     Person = person;
     Method = method;
 }
Exemplo n.º 3
0
 ///<summary>Creates a PersonSelectingEventArgs instance.</summary>
 public PersonSelectingEventArgs(Person person, PersonSelectionReason method)
 {
     if (person == null) throw new ArgumentNullException("person");
     Person = person;
     Method = method;
 }
Exemplo n.º 4
0
 ///<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;
 }