public int GetActiveLine() { if (_viewer._currentActiveAddress.HasValue && _viewer.CurrentFileContainsAddress((int)_viewer._currentActiveAddress.Value)) { return(_viewer.ctrlCodeViewer.GetLineIndex((int)_viewer._currentActiveAddress.Value)); } else { return(-1); } }