private void llNeedRestart2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (RunCmdForm form = new RunCmdForm("NET.exe STOP " + cbSQLServers.Text + " " + "\r\n" + "NET.exe START " + cbSQLServers.Text + " " + "\r\n" + "PAUSE")) { form.ShowDialog(this); } }
private void bStartSqlNorm_Click(object sender, EventArgs e) { using (RunCmdForm form = new RunCmdForm("NET.exe START " + cbSQLServers.Text + " " + "\r\n" + "PAUSE")) { form.ShowDialog(this); } }