public PoderosaLogViewerSession() { _document = new PoderosaLogDocument(this); IPoderosaLog log = ((IPoderosaApplication)PoderosaLogViewerPlugin.Instance.PoderosaWorld.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog; log.AddChangeListener(_document); }
//更新 最終行が見えるように public void UpdateDocument() { PoderosaLogDocument doc = _session.Document; int newtop = RuntimeUtil.AdjustIntRange(doc.Size - this.GetHeightInLines(), 0, doc.Size - 1); AdjustScrollBar(); if (_VScrollBar.Enabled) _VScrollBar.Value = newtop; else Invalidate(); }