public static void ShowWhatsNewWindow(Form owner, GitHubData gitHubData) { try { string releaseBody = gitHubData.Body; string releaseBodyWithoutLastLine = releaseBody.Substring(0, releaseBody.Trim().LastIndexOf(Environment.NewLine, StringComparison.Ordinal)); ShowDataViewDialog(owner, gitHubData.Name + " - What's New", "Change Log", releaseBodyWithoutLastLine.Replace("-", "•")); } catch (Exception ex) { Program.Log.Error(ex, "Unable to fetch release data from GitHub."); } }
public static void ShowWhatsNewWindow(Form owner, GitHubData gitHubData) { try { var releaseBody = gitHubData.Body; var releaseBodyWithoutLastLine = releaseBody.Substring(0, releaseBody.Trim().LastIndexOf(Environment.NewLine)); ShowDataViewDialog(owner, gitHubData.Name + " - What's New", "Change Log", releaseBodyWithoutLastLine.Replace("-", "•")); } catch (Exception ex) { Program.Log.Error("Unable to load github release data.", ex); } }