Esempio n. 1
0
        private void DisplayLineDetails(VisualiserLine line)
        {
            //display details
            IList <String> details = new List <String>();

            details.Add(String.Format("Type: {0}", line.Type));

            lstLineDetails.DataSource = details;
        }
Esempio n. 2
0
        private void DisplayCurrentLine()
        {
            if (lstLineList.SelectedItem != null)
            {
                VisualiserLine currentLine = (VisualiserLine)lstLineList.SelectedItem;

                _suspendSourceSelectionChanged = true;
                DisplayLineDetails(currentLine);
                MarkLineInSource(currentLine);
                _suspendSourceSelectionChanged = false;
            }
        }
Esempio n. 3
0
 //marks the text of the specified block in the source
 private void MarkLineInSource(VisualiserLine line)
 {
     rtSource.Select(line.Position, line.Content.Length);
     rtSource.Focus();
 }