protected virtual void OnActivated(EventArgs e) { EventHandler handler = Activated; if (handler != null) { handler(this, e); } }