public ChangelogForm(SimpleUpdateForm.UpdateType type, Version version)
        {
            InitializeComponent();
            Icon = Gui.Icon;
            switch (type)
            {
            case SimpleUpdateForm.UpdateType.Player:
                changeLogWebViewer.SetChangelog(ChangelogHelper.ParseMpdnChangelog(version.ChangelogLines));
                changeLogWebViewer.BeforeLoadPreviousChangelog +=
                    (sender, args) => { args.ChangelogLines = ChangelogHelper.LoadPreviousMpdnChangelog(); };
                break;

            case SimpleUpdateForm.UpdateType.Extensions:
                changeLogWebViewer.SetChangelog(ChangelogHelper.ParseExtensionChangelog(version.ChangelogLines));
                changeLogWebViewer.BeforeLoadPreviousChangelog +=
                    (sender, args) => { args.ChangelogLines = ChangelogHelper.LoadPreviousExtensionsChangelog(); };
                break;

            default:
                throw new InvalidEnumArgumentException("Only takes Player and Extensions");
            }
            Text = string.Format("{0} Changelog", type);
        }
 protected virtual List <string> ParseChangeLog(List <string> changelog)
 {
     return(ChangelogHelper.ParseMpdnChangelog(changelog));
 }