コード例 #1
0
        /// <summary>
        /// Launch program from event
        /// </summary>
        /// <param name="event_desc"></param>
        private void Vm_runProgram(CEventDesc event_desc, object program_vars)
        {
            if (event_desc.Program != "")
            {
                program_vars = Runner.LaunchProgram(event_desc, program_vars);
            }
            // Run programs in queue
            while (Runner.Programs_in_queue)
            {
                program_vars = Runner.LaunchProgramInQueue(program_vars);
            }

            _system.reset_UI_errors();
        }
コード例 #2
0
ファイル: SCron.cs プロジェクト: jiman14/ARQODE
        private void Tcron_Tick(object sender, EventArgs e)
        {
            // temporary desactive console dump
            debug.CONSOLE_DUMP = false;
            // run programs in list

            System.Windows.Forms.Timer tcron = (System.Windows.Forms.Timer)sender;
            tcron.Stop();

            if (runProgram != null)
            {
                CEventDesc desc = new CEventDesc(dGLOBALS.CRON_CALL_TEXT, dGLOBALS.CRON_CALL_TEXT, dGLOBALS.CRON_CALL_TEXT, dGLOBALS.CRON_CALL_TEXT, tcron.Tag.ToString());
                runProgram(desc);
            }

            // restore console dump
            debug.CONSOLE_DUMP = true;
            // start cron
            if (program_list.Keys.Contains(tcron.Tag.ToString()))
            {
                tcron.Start();
            }
        }