Last active
December 13, 2018 16:04
-
-
Save AnshulKuthiala/3193f9f748ffd57394d4975d36cb4a77 to your computer and use it in GitHub Desktop.
[Version Info] #ExcelHelper Set version info on the button label
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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