/// <summary>Scintilla - Read File and Populate Control</summary> /// <param name="sci">Scintilla Control Name</param> /// <param name="FileName"> </param> public static void OpenFile(this Scintilla Sci, string FileName) { _AHK ahk = new _AHK(); _ScintillaControl sci = new _ScintillaControl(); if (File.Exists(FileName)) { string Code = ahk.FileRead(FileName); sci.UpdateScintilla(Sci, Code); } }
/// <summary>Update Scintilla Control (From Any Thread)</summary> /// <param name="sci">Scintilla Control Name</param> /// <param name="Text"> </param> public static void UpdateText(this Scintilla Sci, string Text = "") { _ScintillaControl sci = new _ScintillaControl(); sci.UpdateScintilla(Sci, Text); }