public static void Initialize() { Instance = new ScriptManager(); TerminalScript.Initialize(); // загрузить коллекцию настроенных скриптов using (new TimeLogger("ScriptManager: LoadScripts")) Instance.LoadScripts(); }
public void LoadScripts() { var nodeScript = ToolSettingsStorageFile.LoadNode(ToolSettingsStorageFile.NodeNameScripts); if (nodeScript == null) { return; } scripts = TerminalScript.LoadFromXml(nodeScript); }
public ScriptContainer(TerminalScript script) { this.script = script; ImageIndex = script.ScriptTarget == TerminalScript.TerminalScriptTarget.График ? 0 : script.ScriptTarget == TerminalScript.TerminalScriptTarget.Терминал ? 1 : script.ScriptTarget == TerminalScript.TerminalScriptTarget.Тикер ? 2 : 0; }