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(); } } }
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(); } } }