protected virtual void OnTopicRead(object sender, TopicReadEventArgs e) { if (this.TopicRead != null && this.IsRunning) { this.TopicRead(sender, e); } }
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); }
protected virtual void OnTopicRead(object sender, TopicReadEventArgs e) { if (this.TopicRead != null && this.IsRunning) this.TopicRead(sender, e); }