public void buttonStreamerConnect_Click(object sender, RoutedEventArgs e) { if (textBoxStreamerName.Text == "notSet" || string.IsNullOrWhiteSpace(textBoxStreamerName.Text)) { MessageBox.Show("Please enter the streamer Twitch username first before trying to connect with Twitch if you want to use features that require a connected streamer account.", "Streamer Twitch Connect", MessageBoxButton.OK, MessageBoxImage.Error); } else { WindowAuthBrowser tab = new WindowAuthBrowser(true); tab.Show(); } }
public void buttonBotConnect_Click(object sender, RoutedEventArgs e) { if (textBoxBotName.Text == "notSet" || string.IsNullOrWhiteSpace(textBoxBotName.Text)) { MessageBox.Show("Please enter the bot Twitch username first before trying to connect with Twitch.", "Bot Twitch Connect", MessageBoxButton.OK, MessageBoxImage.Error); } else { WindowAuthBrowser tab = new WindowAuthBrowser(false); tab.Show(); } }
private void buttonStreamerConnect_Click(object sender, RoutedEventArgs e) { if (textBoxStreamerName.Text == "notSet" || string.IsNullOrWhiteSpace(textBoxStreamerName.Text)) { MessageBox.Show("Please enter the streamer Twitch username first before trying to connect with Twitch if you want to use features that require a connected streamer account.", "Streamer Twitch Connect", MessageBoxButton.OK, MessageBoxImage.Error); } else { WindowAuthBrowser tab = new WindowAuthBrowser(true); tab.Show(); } }
private void buttonBotConnect_Click(object sender, RoutedEventArgs e) { if (textBoxBotName.Text == "notSet" || string.IsNullOrWhiteSpace(textBoxBotName.Text)) { MessageBox.Show("Please enter the bot Twitch username first before trying to connect with Twitch.", "Bot Twitch Connect", MessageBoxButton.OK, MessageBoxImage.Error); } else { WindowAuthBrowser tab = new WindowAuthBrowser(false); tab.Show(); } }