private void ShowLogInfo(List <ShowLogItem> items) { try { if (this._logContainerEle == null) { return; } foreach (ShowLogItem item in items) { HtmlElement logEle = this.CreateLogItemEle(item); this._logContainerEle.AppendChild(logEle); if (!this._isLock) { this.RemoveOutElements(); } if (item.Color == Color.Green) { LMQCenter.Publish("123", null); } } this.webBrowser.Document.Window.ScrollTo(0, this.webBrowser.Document.Window.Size.Height); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } }
private void Push(string message) { LMQCenter.Publish(_topic, textBox1.Text); }