Ejemplo n.º 1
0
 public static ascx_SourceCodeViewer     set_Text(this ascx_SourceCodeViewer codeViewer, string text)
 {
     return(codeViewer.invokeOnThread(
                () =>
     {
         codeViewer.setDocumentContents(text);
         return codeViewer;
     }));
 }
 public static ascx_SourceCodeViewer set_Text(this ascx_SourceCodeViewer sourceCodeViewer, string text)
 {
     // ToCheckOutLater: I don't really understand why I need to run this of a different thread
     // (but when developing ascx_O2_Command_Line there was a case where I had an
     // "In setDocumentContents: GapTextBufferStategy is not thread-safe!"
     // error
     return((ascx_SourceCodeViewer)sourceCodeViewer.invokeOnThread(
                () =>
     {
         sourceCodeViewer.setDocumentContents(text);
         return sourceCodeViewer;
     }));
 }