Ejemplo n.º 1
0
 public EditorViewAdapter(EditorAdapter adapter, IUIThreadInvoker invoker)
 {
     Adapter  = adapter;
     _invoker = invoker;
     Adapter.AddView(this);
     _range = new ViewRange(-1, -1);
 }
Ejemplo n.º 2
0
 //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;
 }
Ejemplo n.º 3
0
 public bool Equals(ViewRange other)
 {
     return(other.Min == Min && other.Max == Max);
 }