Interaktionslogik für WindowAuthBrowser.xaml
Наследование: 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();
     }
 }