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