// 查看详细报警信息,打开联动视频窗口 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Columns[e.ColumnIndex].Name == "DetailMes" && e.RowIndex != -1) { string DeviceID = dataGridView1.Rows[e.RowIndex].Tag.ToString(); LinkageVideoForm LVF = new LinkageVideoForm(DeviceID); LVF.Show(); } }
// 右键菜单查看联动视频,打开联动视频窗口 private void ShowLinkageVideo_Click(object sender, EventArgs e) { LinkageVideoForm LVF = new LinkageVideoForm(DeviceIDs[selectedIndex]); LVF.Show(); }