protected virtual void OnClosing(CancelEventArgs e) { EventHandler<CancelEventArgs> handler = Closing; if (handler != null) { handler(this, e); } }