コード例 #1
0
        protected void checkProcess(Int32 id, Boolean autoRestartChecked, Timer eventAutoRestart)
        {
            Process process = processList[id]; // Map Server

            if (!process.started())
            {
                if (startedAllServers)
                {
                    autoRestartChecked = autoRestartTodos.Checked;
                }

                if (autoRestartChecked)
                {
                    autoRestartForm autoRestart = new autoRestartForm(process, mainHandle, eventAutoRestart);
                    autoRestart.MdiParent = this;
                    autoRestart.Show();
                }
                else
                {
                    eventAutoRestart.Enabled = false;
                    startedAllServers        = false;
                    process.Dispose();
                }
            }
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: mehah/AdminPainel
        protected void checkProcess(Int32 id, Boolean autoRestartChecked, Timer eventAutoRestart)
        {
            Process process = processList[id]; // Map Server
            if (!process.started())
            {
                if (startedAllServers)
                    autoRestartChecked = autoRestartTodos.Checked;

                if (autoRestartChecked)
                {
                    autoRestartForm autoRestart = new autoRestartForm(process, mainHandle, eventAutoRestart);
                    autoRestart.MdiParent = this;
                    autoRestart.Show();
                }
                else
                {
                    eventAutoRestart.Enabled = false;
                    startedAllServers = false;
                    process.Dispose();
                }
            }
        }