Esempio n. 1
0
        public void OnMenuItem(MNMenuItem mi, MNPage page)
        {
            Executor.SetVariable("page", page);
            GSScript os = new GSScript();

            os.readList(mi.ActionScript);
            Executor.ExecuteElement(os);
        }
Esempio n. 2
0
        /// <summary>
        /// Executes objects in the list and possibly add new objects in succession
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="scheduled"></param>
        private void ExecuteScheduledObjects(GSCore parent)
        {
            if (scheduledScripts != null)
            {
                for (int i = 0; i < scheduledScripts.Count; i++)
                {
                    GSScript go = new GSScript();
                    go.readList(scheduledScripts[i]);
                    ExecuteScriptForKey(parent, go);
                }
            }

            scheduledScripts.Clear();
        }