Пример #1
0
        private void SetActiveFileAndLine(Location location)
        {
            if (_CurrentLocation.line != -1)
            {
                xdc.Forms.SourceFileForm previousFile = _fileMgr.getFormByRemoteFilename(_CurrentLocation.filename);
                previousFile.RemoveActiveMark();
            }

            _CurrentLocation.line     = location.line;
            _CurrentLocation.filename = location.filename;

            xdc.Forms.SourceFileForm currentFile = _fileMgr.getFormByRemoteFilename(location.filename);

            currentFile.SetActiveMark(_CurrentLocation.line);
            currentFile.Focus();
            currentFile.BringToFront();
        }