Exemple #1
0
        private async void button17_Click(object sender, EventArgs e)
        {
            List <string> hosts = await TwitchApi.GetChannelHosts(textBox21.Text);

            if (hosts.Count > 0)
            {
                foreach (string host in hosts)
                {
                    MessageBox.Show(host);
                }
            }
            else
            {
                MessageBox.Show("No hosts for '" + textBox21.Text + "'");
            }
        }