private void checkUpdatesButt_Click(object sender, EventArgs e) { if (File.Exists(cwd + "\\OldLauncher.exe")) { File.Delete(cwd + "\\OldLauncher.exe"); } if (File.Exists(cwd + "\\OldLauncherConfig.xml")) { File.Delete(cwd + "\\OldLauncherConfig.xml"); } if (File.Exists(cwd + "\\OldLauncherIcon.ico")) { File.Delete(cwd + "\\OldLauncherIcon.ico"); } progressLabel.Text = ""; speedLabel.Text = ""; percentLabel.Text = ""; totalSizeLabel.Text = ""; o.Reset(); optionalsListView.Clear(); handler = new FileHandler(); handler.optionalsListView = optionalsListView; updateButt.Enabled = false; launchButt.Enabled = false; if (handler.IsInWowDir()) { if (!c.isDefaultConfigUsed) { if (handler.CheckForUpdates()) { updateButt.Enabled = true; UpdateOptionalSizeLabel(); } } // Outputs for debugging purpouses. Keep them commented in releases. // handler.OutputServerFilelist(); // handler.OutputOptionalGroups(); } else { o.Messagebox(c.SubElText("Messages", "LauncherNotInWowDir")); } }