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