コード例 #1
0
        protected virtual bool OnSignEdit(SignEditEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

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

            return(e.Handled);
        }
コード例 #2
0
        protected virtual bool OnSignEdit(SignEditEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

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

            this.WriteHadnlerDebugInfo("SignEdit", e);
            return(e.Handled);
        }
コード例 #3
0
        protected virtual bool OnSignEdit(SignEditEventArgs e)
        {
            Contract.Requires<ArgumentNullException>(e != null);

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

              return e.Handled;
        }
コード例 #4
0
        private void Net_SignEdit(object sender, SignEditEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            return;

              e.Handled = this.UserInteractionHandler.HandleSignEdit(e.Player, e.SignIndex, e.Location, e.NewText);
        }