Exemple #1
0
 protected virtual void OnTopicRead(object sender, TopicReadEventArgs e)
 {
     if (this.TopicRead != null && this.IsRunning)
     {
         this.TopicRead(sender, e);
     }
 }
Exemple #2
0
        private void leechClient_TopicRead(object sender, TopicReadEventArgs e)
        {
            Action a = () => this.txtStartPageCfg.Text = this.leechClient.StartPage.ToString();

            this.txtStartPageCfg.Dispatcher.Invoke(a, DispatcherPriority.Normal);

            if (!e.HasTopic || this.monitorPaused) return;

            Action m = () =>
            {
                this.txtTopicTitle.Text = e.Topic.Title;
                this.txtTopicContent.Text = e.Topic.Content;
                this.txtHash.Text = e.Topic.Hash;
                this.btnOpenThread.Tag = e.Topic.Url;
            };

            this.Dispatcher.Invoke(m, DispatcherPriority.Normal);
        }
Exemple #3
0
 protected virtual void OnTopicRead(object sender, TopicReadEventArgs e)
 {
     if (this.TopicRead != null && this.IsRunning) this.TopicRead(sender, e);
 }