private void DisplayLineDetails(VisualiserLine line) { //display details IList <String> details = new List <String>(); details.Add(String.Format("Type: {0}", line.Type)); lstLineDetails.DataSource = details; }
private void DisplayCurrentLine() { if (lstLineList.SelectedItem != null) { VisualiserLine currentLine = (VisualiserLine)lstLineList.SelectedItem; _suspendSourceSelectionChanged = true; DisplayLineDetails(currentLine); MarkLineInSource(currentLine); _suspendSourceSelectionChanged = false; } }
//marks the text of the specified block in the source private void MarkLineInSource(VisualiserLine line) { rtSource.Select(line.Position, line.Content.Length); rtSource.Focus(); }