Example #1
0
        ///<summary>Raises the ItemSelecting event.</summary>
        protected override void OnItemSelecting(ItemSelectingEventArgs e)
        {
            base.OnItemSelecting(e);
            var args = new PersonSelectingEventArgs((Person)e.NewItem, PersonSelectionReason.ResultClick)
            {
                Cancel = e.Cancel
            };

            OnPersonSelecting(args);
            e.Cancel = args.Cancel;
        }
Example #2
0
 ///<summary>Raises the ItemSelecting event.</summary>
 protected override void OnItemSelecting(ItemSelectingEventArgs e)
 {
     base.OnItemSelecting(e);
     var args = new PersonSelectingEventArgs((Person)e.NewItem, PersonSelectionReason.ResultClick) { Cancel = e.Cancel };
     OnPersonSelecting(args);
     e.Cancel = args.Cancel;
 }