Exemplo n.º 1
0
 /// <summary>
 /// Creates a new IUIContext from the current context.  Contexts however are not away if
 /// the controller wishes for them to be displayed in Large Text Mode, so this value must
 /// be passed in.  Parent contexts are always assumed to not use large text mode.
 /// </summary>
 /// <param name="textMode">
 /// A <see cref="System.Boolean"/>
 /// </param>
 /// <returns>
 /// A <see cref="IUIContext"/>
 /// </returns>
 public IUIContext GetIUIContext(bool textMode, TextModeType type)
 {
     if (ParentContext == null)
     {
         return(new UIContext(Selection, Results, Cursor, SecondaryCursorsToIntArray(),
                              Query, textMode, type, null));
     }
     else
     {
         return(new UIContext(Selection, Results, Cursor, SecondaryCursorsToIntArray(),
                              Query, textMode, type, ParentContext.GetIUIContext(false, TextModeType.None)));
     }
 }