private void btn_TwitchConnect(object sender, RoutedEventArgs e) { if (Twitch.IsConnected()) { Twitch._client.Disconnect(); } else { Twitch.BotConnect(); } }
private void MenuItem_MouseEnter(object sender, MouseEventArgs e) { if (!Twitch.IsConnected()) { btn_twitchConnect.IsEnabled = true; btn_twitchDisconnect.IsEnabled = false; } else { btn_twitchConnect.IsEnabled = false; btn_twitchDisconnect.IsEnabled = true; } }