private void btnAppPoolIds_Click(object sender, EventArgs e) { frmWebSites frm = new frmWebSites(); frm.StartPosition = FormStartPosition.CenterParent; frm.Show(); }
private void 拆分应用程序池ToolStripMenuItem_Click(object sender, EventArgs e) { if (dgvProcess.Rows.Count == 0) { return; } string Intro = dgvProcess["Intro", dgvProcess.CurrentCell.RowIndex].Value.ToString(); frmWebSites frm = new frmWebSites(); frm.InAppPoolId = Intro; if (frm.ShowDialog() == DialogResult.Yes) { int ProcessId = Convert.ToInt32(dgvProcess["ProcessId", dgvProcess.CurrentCell.RowIndex].Value); Process.GetProcessById(ProcessId).Kill(); } }