public void OnInactive(EventArgs e) { EventHandler handler = Inactive; if (handler != null) handler(this, e); }