public static void ShowDialog(string CurrentBuild, string LatestBuild) { AboutBox Instance = new AboutBox(); Instance.versionLabel.Text = "Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString() + ", build: " + CurrentBuild.Substring(0,8); Instance.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutBox.ShowDialog(CurrentGitHash, LatestGitHash); }