Esempio n. 1
0
        protected virtual bool OnTilePaint(TilePaintEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

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

            return(e.Handled);
        }
Esempio n. 2
0
        protected virtual bool OnTilePaint(TilePaintEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

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

            this.WriteHadnlerDebugInfo("TilePaint", e);
            return(e.Handled);
        }
 private void Net_TilePaint(object sender, TilePaintEventArgs e) {
   if (this.isDisposed || !this.hooksEnabled || e.Handled)
     return;
   
   e.Handled = this.UserInteractionHandler.HandleTilePaint(e.Player, e.Location, e.Color);
 }
        protected virtual bool OnTilePaint(TilePaintEventArgs e)
        {
            Contract.Requires<ArgumentNullException>(e != null);

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

              return e.Handled;
        }