private void checkForAnyReleaseToolStripMenuItem_Click(object sender, EventArgs e) { UpdateApplication update = new UpdateApplication(); update.InstallUpdateSyncWithInfo(1); update = null; // Free up memory, same deal as above }
private void checkForStableReleaseToolStripMenuItem_Click(object sender, EventArgs e) { UpdateApplication update = new UpdateApplication(); update.InstallUpdateSyncWithInfo(2); update = null; // Free up memory, unless the user keeps clicking this, it's better }
private void frmMain_Shown(object sender, EventArgs e) { // Check for updates in background UpdateApplication update = new UpdateApplication(); update.InstallUpdateSyncWithInfo(0); update = null; // Free up memory, we don't need this any more }