protected virtual void OnClose() { var temp = Closed; if (temp != null) { temp(this, EventArgs.Empty); } }