Пример #1
0
 public static void Initialize()
 {
     Instance = new ScriptManager();
     TerminalScript.Initialize();
     // загрузить коллекцию настроенных скриптов
     using (new TimeLogger("ScriptManager: LoadScripts"))
         Instance.LoadScripts();
 }
Пример #2
0
        public void LoadScripts()
        {
            var nodeScript = ToolSettingsStorageFile.LoadNode(ToolSettingsStorageFile.NodeNameScripts);

            if (nodeScript == null)
            {
                return;
            }
            scripts = TerminalScript.LoadFromXml(nodeScript);
        }
Пример #3
0
 public ScriptContainer(TerminalScript script)
 {
     this.script = script;
     ImageIndex = script.ScriptTarget == TerminalScript.TerminalScriptTarget.График
         ? 0 : script.ScriptTarget == TerminalScript.TerminalScriptTarget.Терминал ? 1
         : script.ScriptTarget == TerminalScript.TerminalScriptTarget.Тикер ? 2 : 0;
 }