Пример #1
0
 private void DispatcherUserSubscribed(Subscriber sub)
 {
     AddItem(sub);
 }
Пример #2
0
 private void SetSubscriber(Subscriber subscriber)
 {
     Inlines.Add(new Run(string.Format("{0} just subscribed!", subscriber.User.Name)) { BaselineAlignment = BaselineAlignment.Center, Foreground = Brushes.Red });
 }
Пример #3
0
        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);
        }