protected override void OnViewLoaded(object view) { _view = (IOutputView)view; _view.SetText(StringBuilder.ToString()); _view.ScrollToEnd(); if (view is OutputView outputView) { outputView.Loaded += OnLoaded; outputView.Unloaded += OnUnloaded; } }
protected override void OnViewLoaded(object view) { _view = (IOutputView)view; if (_view == null) { throw new InvalidCastException(); } _view.SetText(_stringBuilder.ToString()); _view.ScrollToEnd(); base.OnViewLoaded(view); }
protected override void OnViewLoaded(object view) { _view = (IOutputView)view; _view.SetText(StringBuilder.ToString()); _view.ScrollToEnd(); if (view is OutputView outputView) { outputView.Loaded += OnLoaded; outputView.Unloaded += OnUnloaded; } LogWatcher.EnableRaisingEvents = true; }
protected override void OnViewLoaded(object view) { _view = (IOutputView)view; _view.ScrollToEnd(); }
protected override void OnViewLoaded(object view) { _view = (IOutputView) view; _view.SetText(_stringBuilder.ToString()); _view.ScrollToEnd(); }
protected override void OnViewLoaded(object view) { _view = (IOutputView)view; _view.SetText(_stringBuilder.ToString()); _view.ScrollToEnd(); }
protected override void OnViewLoaded(object view) { _view = (IOutputView) view; _view.ScrollToEnd(); }