private void DispatcherUserSubscribed(Subscriber sub) { AddItem(sub); }
private void SetSubscriber(Subscriber subscriber) { Inlines.Add(new Run(string.Format("{0} just subscribed!", subscriber.User.Name)) { BaselineAlignment = BaselineAlignment.Center, Foreground = Brushes.Red }); }
private void SubscribeHandler(TwitchChannel sender, TwitchUser user) { if (PlaySounds) m_subSound.Play(); var sub = new Subscriber(sender, this, user); Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action<Subscriber>(DispatcherUserSubscribed), sub); }