private void checkForUpdate_Click(object sender, EventArgs e) { //Doesn't return true for some reason... To fix if (MainProgram.HasInternet()) { new ACC_Updater().Check(true); } else { MessageBox.Show("Could not check for update as your computer is not connected to the internet", "Error | " + MainProgram.messageBoxTitle); } }
private void checkForUpdate_Click(object sender, EventArgs e) { if (MainProgram.HasInternet()) { if (!new ACC_Updater().Check()) { //No new update MessageBox.Show("No new update found. You're up to date!", "Check for update | " + MainProgram.messageBoxTitle); } } else { MessageBox.Show("Could not check for update as your computer is not connected to the internet", "Error | " + MainProgram.messageBoxTitle); } }
private void checkForUpdate_Click(object sender, EventArgs e) { //Doesn't return true for some reason... To fix if (MainProgram.HasInternet()) { if (!new SoftwareUpdater().Check(true)) { MessageBox.Show(Translator.__("no_new_update", "check_for_update"), MainProgram.messageBoxTitle); } } else { MessageBox.Show(Translator.__("update_check_failed", "check_for_update"), Translator.__("error", "general") + " | " + MainProgram.messageBoxTitle); } }