private void closeFormSafe() { if (InvokeRequired) { var d = new closeFormDelegate(closeFormSafe); Invoke(d); } else { Close(); } }
public void CloseForm() { closeFormDelegate la = new closeFormDelegate(delegateCloseForm); this.Invoke(la); }