void DelayExit() { Thread.Sleep(3000); ZeroParamHandler zph = new ZeroParamHandler(CloseForm); this.Invoke(zph); }
void clsDownload_Error(string err) { MessageBox.Show(err); SetTextHandler sth = new SetTextHandler(SetText); object[] objText = { txtUrl, "" }; txtUrl.Invoke(sth, objText); ZeroParamHandler cuh = new ZeroParamHandler(CleanUp); this.Invoke(cuh); object[] objErr = { lblStatus, err }; lblStatus.Invoke(sth, objErr); Environment.Exit(-1); }
void clsCheckForUpdate_InfoLoaded() { ZeroParamHandler zph = new ZeroParamHandler(CheckForUpdate); picProgressBar.Invoke(zph); }
void clsDownload_Error(string err) { MessageBox.Show(err); SetTextHandler sth = new SetTextHandler(SetText); object[] objText = { txtUrl, "" }; txtUrl.Invoke(sth, objText); ZeroParamHandler cuh = new ZeroParamHandler(CleanUp); this.Invoke(cuh); object[] objErr = { lblStatus, err }; lblStatus.Invoke(sth, objErr); Environment.Exit(-1); }