private void 检查更新VToolStripMenuItem_Click(object sender, EventArgs e) { if (updateForm != null) { updateForm.Activate(); } else { updateForm = new UpdateForm(); updateForm.Show(); updateForm.Activate(); updateForm.FormClosed += updateFormClosed; } }
void updateFormClosed(object sender, FormClosedEventArgs e) { updateForm.Dispose(); updateForm = null; Utils.ReleaseMemory(true); }