Skip to content

Instantly share code, notes, and snippets.

@AnshulKuthiala
Last active December 13, 2018 16:04
Show Gist options
  • Save AnshulKuthiala/3193f9f748ffd57394d4975d36cb4a77 to your computer and use it in GitHub Desktop.
Save AnshulKuthiala/3193f9f748ffd57394d4975d36cb4a77 to your computer and use it in GitHub Desktop.
[Version Info] #ExcelHelper Set version info on the button label
using System.Deployment.Application;
private void RibbonCapitalGains_Load(object sender, RibbonUIEventArgs e)
{
if (ApplicationDeployment.IsNetworkDeployed)
{
var version = ApplicationDeployment.CurrentDeployment.CurrentVersion;
buttonAbout.Label = $"v{version.ToString(3)}";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment