Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var html = Changelogs.GetChangelogHtml(listBox1.SelectedItem.ToString());

            webBrowser1.DocumentText = html;
            richTextBox1.Text        = html;
        }
Beispiel #2
0
        private async void btnLoad_Click(object sender, EventArgs e)
        {
            var version = listBox1.SelectedItem?.ToString();

            if (string.IsNullOrEmpty(version))
            {
                return;
            }

            btnLoad.Enabled = false;

            var body = await changelogs.GetChangelogHtml(version);

            webBrowser1.DocumentText = body;

            btnLoad.Enabled = true;
        }