public void AbortMessage() { if (null != mainForm) { toDispatch.BeginInvoke(new Action(() => { mainForm.AbortMessage(); })); } }