internal void OpenURL(string URL, Form source) { if (!URL.ToLower().StartsWith("http://") && !URL.ToLower().StartsWith("https://")) { return; } Windows.ShellExecute(source.Handle, 0, URL, "", "", 0); }
internal void ShellOpen(string folder, Form source = null) { if (source == null) { source = CurrentMainScreen(); } Windows.ShellExecute(source.Handle, 0, folder, "", "", 1); }
public void btnDownload_Click(object sender, EventArgs e) { // Download and install latest version; theoretically this could be the current version if it is damaged if (m_RequiresWeb) { MessageBox.Show(Strings.Item("Update_Restart")); Windows.ShellExecute(this.Handle, 0, Server.TechURL + "redirect.aspx?to=download&version=" + txtLatest.Text + "&lang=" + Server.Language2, "", "", 0); // "&age=" + Globals.Root.NominalAgeString } else { FetchVersionFiles(m_Latest); } }