Interaktionslogik für WindowAuthBrowser.xaml
Inheritance: System.Windows.Window
示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }
示例#3
0
 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();
     }
 }
示例#4
0
 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();
     }
 }