private void OnClick(object sender, EventArgs e) { if (form == null || form.IsDisposed) { form = new FrmEntityLogger(entities); manager.OpenCentered(form); } else { form.Focus(); } }