private void btnPath_Click(object sender, EventArgs e) { int SelectedRow = gridItemDetail.FocusedRowHandle; if (SelectedRow >= 0) { string _value2 = ""; string _value = gridItemDetail.GetFocusedRowCellValue(colNodeCode).ToString();// drow["NodeCode"].ToString(); _value2 = gridItemDetail.GetFocusedRowCellValue(colDescription).ToString(); if (_value2.Length > 5) { frmNodeList_UpdateByPath frm = new frmNodeList_UpdateByPath(_value, _value2); frm.ShowDialog(); } else { MessageBox.Show("Node này chưa được cập nhật tọa độ GPS !"); } } }
private void btnPath_Click(object sender, EventArgs e) { int SelectedRow = gridItemDetail.FocusedRowHandle; if (SelectedRow >= 0) { string _value2 = ""; string _value = gridItemDetail.GetFocusedRowCellValue(colNodeCode).ToString();// drow["NodeCode"].ToString(); _value2 = gridItemDetail.GetFocusedRowCellValue(colDescription).ToString(); if (_value2.Length > 5) { frmNodeList_UpdateByPath frm = new frmNodeList_UpdateByPath(_value, _value2); frm.ShowDialog(); } else { MessageBox.Show("Node này chưa được cập nhật tọa độ GPS !"); } } }