Exemple #1
0
        protected virtual bool OnItemOwner(ItemOwnerEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

            try {
                if (this.ItemOwner != null)
                {
                    this.ItemOwner(this, e);
                }
            } catch (Exception ex) {
                this.ReportEventHandlerException("ItemOwner", ex);
            }

            return(e.Handled);
        }
Exemple #2
0
        protected virtual bool OnItemOwner(ItemOwnerEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

            try {
                if (this.ItemOwner != null)
                {
                    this.ItemOwner(this, e);
                }
            } catch (Exception ex) {
                this.ReportEventHandlerException("ItemOwner", ex);
            }

            this.WriteHadnlerDebugInfo("ItemOwner", e);
            return(e.Handled);
        }
        protected virtual bool OnItemOwner(ItemOwnerEventArgs e)
        {
            Contract.Requires<ArgumentNullException>(e != null);

              try {
            if (this.ItemOwner != null)
              this.ItemOwner(this, e);
              } catch (Exception ex) {
            this.ReportEventHandlerException("ItemOwner", ex);
              }

              return e.Handled;
        }