Пример #1
0
 public EditorViewAdapter(EditorAdapter adapter, IUIThreadInvoker invoker)
 {
     Adapter  = adapter;
     _invoker = invoker;
     Adapter.AddView(this);
     _range = new ViewRange(-1, -1);
 }
Пример #2
0
 public RichTextBoxHighlighter(RichTextBox textBox, LanguageData language)
 {
     TextBox     = textBox;
     Adapter     = new EditorAdapter(language);
     ViewAdapter = new EditorViewAdapter(Adapter, this);
     InitColorTable();
     Connect();
     UpdateViewRange();
     ViewAdapter.SetNewText(TextBox.Text);
 }