Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (Properties.Settings.Default.twitch_autoconnect)
            {
                Twitch.BotConnect();
            }

            LoadConfig();
            AddItems(soundObjects);
            soundObjects.CollectionChanged += SoundObjects_CollectionChanged;
        }
Пример #2
0
 private void btn_TwitchConnect(object sender, RoutedEventArgs e)
 {
     if (Twitch.IsConnected())
     {
         Twitch._client.Disconnect();
     }
     else
     {
         Twitch.BotConnect();
     }
 }