private async void Privacy_Click(object sender, RoutedEventArgs e) { var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Privacy.md")); var dialog = new MarkdownDialog(lang.GetString("About/Privacy"), await FileIO.ReadTextAsync(file)); await dialog.ShowAsync(); }
private async Task ShowWhatsNew() { var ver = Version.Parse(SettingsStorage.GetObjectLocal("_version", new Version(0, 0, 0, 0).ToString())); if (!SettingsStorage.GetObjectLocal("WasUpdated", false) && ver == new Version(0, 0, 0, 0)) { return; } SettingsStorage.DeleteObjectLocal("WasUpdated"); SettingsStorage.DeleteObjectLocal("_version"); if (Platform.Version.Revision != 0) { return; } var log = await Updates.GetChangelog(Platform.Version); if (string.IsNullOrEmpty(log.Name) || string.IsNullOrEmpty(log.Content)) { return; } var dialog = new MarkdownDialog(lang.GetString("HostTab/ChangelogTitle"), log.Content); await dialog.ShowAsync(); }