public StartUpModeControl()
        {
            this.VersionString = VersionTools.GetAppVersion();
            InitializeComponent();
            // If possible, point to build-specific release notes
            Uri releaseNotesUri = MsiUtilities.GetReleaseNotesUri(new SetupExceptionReporter());

            if (releaseNotesUri != null)
            {
                hlLink.NavigateUri = releaseNotesUri;
            }
        }
        /// <summary>
        /// Compute version text, per https://github.com/microsoft/accessibility-insights-windows/issues/347
        /// </summary>
        private string ComputeVersionBarString()
        {
            ReleaseChannel?channel = ConfigurationManager.GetDefaultInstance()?.AppConfig?.ReleaseChannel;

            if ((channel.HasValue && channel.Value != ReleaseChannel.Production) ||
                _updateOption != AutoUpdateOption.NewerThanCurrent)
            {
                return(string.Format(CultureInfo.InvariantCulture,
                                     Properties.Resources.VersionBarPreReleaseVersion,
                                     VersionTools.GetAppVersion()));
            }

            return(string.Empty);
        }
Ejemplo n.º 3
0
 public StartUpModeControl()
 {
     this.VersionString = VersionTools.GetAppVersion();
     InitializeComponent();
     WaitHandle.Reset();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public AboutTabControl()
 {
     InitializeComponent();
     lbVersion.Content = VersionTools.GetAppVersion();
 }
        /// <summary>
        /// Set version text
        /// [(ReleaseChannel) - ]Version - UIAccess state
        /// </summary>
        private void UpdateVersionString()
        {
            StringBuilder sb = new StringBuilder();

            ReleaseChannel?channel = ConfigurationManager.GetDefaultInstance()?.AppConfig?.ReleaseChannel;

            if (channel.HasValue && channel.Value != ReleaseChannel.Production)
            {
                sb.AppendFormat(CultureInfo.InvariantCulture, "({0}) - ", channel.Value);
            }

            sb.AppendFormat(CultureInfo.InvariantCulture, Properties.Resources.UpdateVersionStringVer, VersionTools.GetAppVersion());

            if (NativeMethods.IsRunningWithUIAccess())
            {
                sb.Append(Properties.Resources.UpdateVersionStringUIAccess);
            }

            this.lblVersion.Content = sb.ToString();
        }