private bool bolScriptModified = true;
private string strScriptText = null;
public string ScriptText {
get => strScriptText;
set {
if (strScriptText != value) {
bolScriptModified = true;
strScriptText = value;
}
}
}
bolScriptModified = true
private bool bolEnabled = true;
public bool Enabled { get => bolEnabled; set => bolEnabled = value; }
private bool bolOutputDebug = true;
public bool OutputDebug { get => bolOutputDebug; set => bolOutputDebug = value; }
Enabled:整體啟用/停用腳本引擎OutputDebug:控制編譯/執行過程偵錯輸出封裝三大步驟:
strRuntimeSource)供外部呼叫或內部自動觸發(bolScriptModified 為真時)。