Example #1
0
        protected virtual bool OnSendTileSquare(SendTileSquareEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

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

            return(e.Handled);
        }
Example #2
0
        protected virtual bool OnSendTileSquare(SendTileSquareEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

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

            this.WriteHadnlerDebugInfo("SendTileSquare", e);
            return(e.Handled);
        }
    private void Net_SendTileSquare(object sender, SendTileSquareEventArgs e) {
      if (this.isDisposed || !this.hooksEnabled || e.Handled)
        return;

      e.Handled = this.CircuitHandler.HandleSendTileSquare(e.Player, e.Location, e.Size);
    }
        protected virtual bool OnSendTileSquare(SendTileSquareEventArgs e)
        {
            Contract.Requires<ArgumentNullException>(e != null);

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

              return e.Handled;
        }