private void Window_Loaded(object sender, RoutedEventArgs e) { if (Properties.Settings.Default.twitch_autoconnect) { Twitch.BotConnect(); } LoadConfig(); AddItems(soundObjects); soundObjects.CollectionChanged += SoundObjects_CollectionChanged; }
private void btn_TwitchConnect(object sender, RoutedEventArgs e) { if (Twitch.IsConnected()) { Twitch._client.Disconnect(); } else { Twitch.BotConnect(); } }