VixenApplication.VixenApplication.PopulateVersionStrings C# (CSharp) Method

PopulateVersionStrings() private method

private PopulateVersionStrings ( ) : void
return void
        private void PopulateVersionStrings()
        {
            System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(VixenSystem.AssemblyFileName);
            Version version = assembly.GetName().Version;

            _devBuild = version.Major == 0;

            if (_devBuild) {
                labelVersion.Text = "DevBuild";
            } else {
                labelVersion.Text = string.Format("{0}.{1}", version.Major, version.Minor);
                if (version.Revision > 0) {
                    labelVersion.Text += string.Format("u{0}", version.Revision);
                }
            }

            if (version.Build > 0)
            {
                labelDebugVersion.Text = string.Format("Build #{0}", version.Build);
            }
            else
            {
                labelDebugVersion.Text = @"Test Build";
                labelDebugVersion.ForeColor = Color.Yellow;
            }

            labelDebugVersion.Visible = true;

            //Log the runtime versions
            var runtimeVersion = FileVersionInfo.GetVersionInfo(typeof (int).Assembly.Location).ProductVersion;
            Logging.Info(".NET Runtime is: {0}", runtimeVersion);
        }