public EditorViewAdapter(EditorAdapter adapter, Control control) { Adapter = adapter; this.Control = control; Adapter.AddView(this); _range = new ViewRange(-1, -1); }
//SetViewRange and SetNewText are called by text box's event handlers to notify adapter that user did something edit box public void SetViewRange(int min, int max) { _range = new ViewRange(min, max); _wantsColorize = true; }
public bool Equals(ViewRange other) { return(other.Min == Min && other.Max == Max); }