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(); }
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)); } }
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; } }