private void Client_OnJoinedChannel(object sender, TwitchLib.Events.Client.OnJoinedChannelArgs e) { Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => ClientChats.Add(new ClientControlListItemViewModel(e.Channel)))); Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => ChatControlList.Add(e.Channel, new ChatControlViewModel(client, e.Channel)))); }
private void onJoinedChannel(object sender, OnJoinedChannelArgs e) { MessageBox.Show($"Joined channel: {e.Channel}\nAs username: {e.Username}"); }