Beispiel #1
0
        protected virtual bool OnTeleport(TeleportEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

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

            return(e.Handled);
        }
Beispiel #2
0
        protected virtual bool OnTeleport(TeleportEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

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

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

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

              return e.Handled;
        }