private void gridItemDetail_DoubleClick(object sender, EventArgs e) { if (dt.Rows.Count > 0) { if (gridItemDetail.FocusedRowHandle > -1) { string mac = gridItemDetail.GetFocusedRowCellValue(colMacAdress).ToString(); if (mac != "") { if (gridItemDetail.FocusedColumn.Name == "colChart") { frmSignalChart frm = new frmSignalChart(mac, 1); frm.ShowDialog(); } else if (gridItemDetail.FocusedColumn.Name == "colIpPrivate") { frmCn_adminWeb frm = new frmCn_adminWeb(mac, "history CNADMIN"); frm.ShowDialog(); } else { frmSignalHistory frm = new frmSignalHistory(mac, 1); frm.ShowDialog(); } } } } }
private void btnThamKhao_Click(object sender, EventArgs e) { frmCn_adminWeb frm = new frmCn_adminWeb(Mac); frm.ShowDialog(); }
private void gridItemDetail_DoubleClick(object sender, EventArgs e) { if (dt.Rows.Count > 0) { if (gridItemDetail.FocusedRowHandle > -1) { string mac = gridItemDetail.GetFocusedRowCellValue(colMacAdress).ToString(); if (mac != "") { if (gridItemDetail.FocusedColumn.Name == "colChart") { frmSignalChart frm = new frmSignalChart(mac,1); frm.ShowDialog(); } else if (gridItemDetail.FocusedColumn.Name == "colIpPrivate") { frmCn_adminWeb frm = new frmCn_adminWeb(mac, "history CNADMIN"); frm.ShowDialog(); } else { frmSignalHistory frm = new frmSignalHistory(mac,1); frm.ShowDialog(); } } } } }