private void OnTick(EventArgs e) { EventHandler handler = this.Tick; if (handler != null) { handler(this, e); } }