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