Пример #1
0
 private void LoadAboutMe()
 {
     packageName.Text        = ThisAppInfo.GetDisplayName();
     packageVersion.Text     = ThisAppInfo.GetPackageVersion();
     installedFrom.Text      = ThisAppInfo.GetAppInstallerUri();
     installLocation.Text    = ThisAppInfo.GetInstallLocation();
     installedDate.Text      = ThisAppInfo.GetInstallationDate();
     RuntimeVersionInfo.Text = ThisAppInfo.GetDotNetRuntimeInfo();
 }
Пример #2
0
        private void SettingsLinkClick(object sender, RoutedEventArgs e)
        {
            string filePath = ThisAppInfo.GetSettingsLocation();

            if (!System.IO.File.Exists(filePath))
            {
                _logger.LogError("Settings File Not Found");
            }
            else
            {
                //Clean up file path so it can be navigated OK
                filePath = System.IO.Path.GetFullPath(filePath);
                System.Diagnostics.Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
            }
        }
Пример #3
0
        private void LoadAboutMe()
        {
            about.packageName.Text        = ThisAppInfo.GetDisplayName();
            about.packageVersion.Text     = ThisAppInfo.GetPackageVersion();
            about.installedFrom.Text      = ThisAppInfo.GetAppInstallerUri();
            about.installLocation.Text    = ThisAppInfo.GetInstallLocation();
            about.settingsLocation.Text   = ThisAppInfo.GetSettingsLocation();
            about.installedDate.Text      = ThisAppInfo.GetInstallationDate();
            about.RuntimeVersionInfo.Text = ThisAppInfo.GetDotNetRuntimeInfo();

            if (Convert.ToBoolean(App.StaticConfig["IsAppPackaged"], CultureInfo.InvariantCulture))
            {
                about.updateBtn.Visibility = Visibility.Visible;
            }
            else
            {
                about.updateBtn.Visibility = Visibility.Collapsed;
            }
        }