コード例 #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);
        }
コード例 #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);
        }
コード例 #3
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;
        }