Exemple #1
0
        //display details for the specified statement
        private void DisplayStatementDetails(VisualiserStatement statement)
        {
            //display details
            IList <String> details = new List <String>();

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

            lstStatementDetails.DataSource = details;
        }
Exemple #2
0
        private void DisplayCurrentStatement()
        {
            if (lstStatementList.SelectedItem != null)
            {
                VisualiserStatement currentStatement = (VisualiserStatement)lstStatementList.SelectedItem;

                _suspendSourceSelectionChanged = true;
                DisplayStatementDetails(currentStatement);
                MarkStatementInSource(currentStatement);
                _suspendSourceSelectionChanged = false;
            }
        }
Exemple #3
0
 //marks the text of the specified token in the source
 private void MarkStatementInSource(VisualiserStatement statement)
 {
     rtSource.Select(statement.Position, statement.Content.Length);
     rtSource.Focus();
 }