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); }
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; }