public void CheckForUpdate(Boolean visual, String currver) { String ver = ""; try { ver = webby.DownloadString(DataContainer.GetLinkResouce("onlinever")); if (!ver.Equals(currver)) { if (MessageBox.Show("There is a update avaible!\nDo you want to open the topic?", "Check for Update", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { System.Diagnostics.Process.Start(DataContainer.GetLinkResouce("forum")); } } else { if (visual) { MessageBox.Show("You are using the latest version.", "Check for Update", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } catch (WebException wex) { Log(wex); if (visual) { MessageBox.Show("Network unavaible.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private void OpenWeb_Click(object sender, EventArgs e) { Process.Start(DataContainer.GetLinkResouce("website")); }
private void OpenGitHub_Click(object sender, EventArgs e) { Process.Start(DataContainer.GetLinkResouce("github")); }