예제 #1
0
        private void 分析应用程序池对应的网站ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dgvProcess.Rows.Count == 0)
            {
                return;
            }
            string   Intro = dgvProcess["Intro", dgvProcess.CurrentCell.RowIndex].Value.ToString();
            DataView dv    = Comm.GetAllWebInfo().DefaultView;

            dv.RowFilter = " AppPoolId = '" + Intro + "'";
            if (dv.Count > 1)
            {
                MessageBox.Show("此应用程序池有多个站点,\n\n请先折分应用程序池,\n\n保证要分析的网站只在一个应用程序池里");
            }
            frmLogTimelyView frm = new frmLogTimelyView();

            frm.Id  = dv[0]["Id"].ToString();
            frm.Web = dv[0]["Web"].ToString();
            frm.ShowDialog();
        }
예제 #2
0
 private void 分析应用程序池对应的网站ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dgvProcess.Rows.Count == 0)
     {
         return;
     }
     string Intro = dgvProcess["Intro", dgvProcess.CurrentCell.RowIndex].Value.ToString();
     DataView dv = Comm.GetAllWebInfo().DefaultView;
     dv.RowFilter = " AppPoolId = '" + Intro + "'";
     if (dv.Count > 1)
     {
         MessageBox.Show("此应用程序池有多个站点,\n\n请先折分应用程序池,\n\n保证要分析的网站只在一个应用程序池里");
     }
     frmLogTimelyView frm = new frmLogTimelyView();
     frm.Id = dv[0]["Id"].ToString();
     frm.Web = dv[0]["Web"].ToString();
     frm.ShowDialog();
 }