Пример #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
        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);
                    }
                }
        }