private bool DeleteInfoDocument(long thongTinHoSoId, out string message) { message = ""; bool result = true; long?num = null; try { while (thongTinHoSoId > 0L) { TreeNode node = null; foreach (TreeNode treeNode in this.trvHoSo.Nodes) { long num2 = Convert.ToInt64(treeNode.Tag.ToString().Substring(2)); bool flag = thongTinHoSoId == num2; if (flag) { node = treeNode; num = this._dictHoSo[num2].KhoaChaId; break; } } bool flag2 = thongTinHoSoId > 0L; if (flag2) { bool flag3 = ManageBase.DeleteThongTinHoSo(thongTinHoSoId); if (flag3) { this._dictHoSo.Remove(thongTinHoSoId); this.trvHoSo.Nodes.Remove(node); bool hasValue = num.HasValue; if (hasValue) { thongTinHoSoId = num.Value; } else { thongTinHoSoId = 0L; } num = null; } else { result = false; message = "Không có dữ liệu"; } } } } catch (Exception ex) { result = false; message = ex.Message; } return(result); }