private void ShowUpdateLog(string strValue) { if (btn_checkupdate.InvokeRequired) { Getupdatedelegate g = ShowUpdateLog; btn_checkupdate.Invoke(g, strValue); } else { if (!string.IsNullOrEmpty(strValue)) { var cu = new CheckUpdate(strValue); cu.Show(); } else { var dialogresult = MessageBox.Show(_rm.GetString("updateerror"), "Warning", MessageBoxButtons.YesNoCancel); _setting.IsAutoCheckUpdate = dialogresult != DialogResult.Yes; ckb_autoupdate.Checked = _setting.IsAutoCheckUpdate; _setting.Save(); } btn_checkupdate.Text = _rm.GetString("btn_checkupdate.Text"); btn_checkupdate.Enabled = true; } }