示例#1
0
        private static void startProcesses(Object stateInfo)
        {
            // Stop before starting
            stopProcesses();

            // Start console read timer
            //timer_Start();

            // Start the applications
            foreach (string file in new ArrayList(Settings.Components.Keys))
            {
                // Is this file marked for startup?
                if (Settings.Components[file])
                {
                    AppExecutor app = new AppExecutor(file);
                    app.Start();
                    AppList.Add(file, app);
                    if (AppCreated != null)
                    {
                        AppCreated(app.File);
                    }
                    System.Threading.Thread.Sleep(1000 * delayBetweenExecuteSeconds);
                }
            }
        }
示例#2
0
文件: Program.cs 项目: kf6kjg/halcyon
        private static void startProcesses(Object stateInfo)
        {
            // Stop before starting
            stopProcesses();

            // Start console read timer
            //timer_Start();

                // Start the applications
                foreach (string file in new ArrayList(Settings.Components.Keys))
                {
                    // Is this file marked for startup?
                    if (Settings.Components[file])
                    {
                        AppExecutor app = new AppExecutor(file);
                        app.Start();
                        AppList.Add(file, app);
                        if (AppCreated != null)
                            AppCreated(app.File);
                        System.Threading.Thread.Sleep(1000*delayBetweenExecuteSeconds);
                    }
                }
        }