private void deselectAllChildRegionsToolStripMenuItem1_Click(object sender, EventArgs e) { if (tvRegions.SelectedNode != null) { foreach (TreeNode checkedNode in tvRegions.SelectedNode.Nodes) { TreeUtil.MarkRegion(checkedNode, false); } } }
private void deselectAllChildRegionsToolStripMenuItem_Click(object sender, EventArgs e) { if (tvRegions.SelectedNode != null) { _enableSearch = false; foreach (TreeNode checkedNode in tvRegions.SelectedNode.Nodes) { TreeUtil.MarkRegion(checkedNode, false); } _enableSearch = true; LoadRisksDataGrid(); } }
private void deselectAllRegionsOnThisLevelToolStripMenuItem1_Click(object sender, EventArgs e) { if (tvRegions.SelectedNode != null) { if (tvRegions.SelectedNode.Parent != null) { // Get the current level int level = TreeUtil.GetLevelFromRoot(tvRegions.SelectedNode); TreeUtil.MarkRegion(tvRegions.Nodes[0], false, level, 1); } else { TreeUtil.MarkRegion(tvRegions.SelectedNode, false, false); } } }
private void deselectAllRegionsOnThisLevelToolStripMenuItem_Click(object sender, EventArgs e) { if (tvRegions.SelectedNode != null) { _enableSearch = false; if (tvRegions.SelectedNode.Parent != null) { // Get the current level int level = TreeUtil.GetLevelFromRoot(tvRegions.SelectedNode); TreeUtil.MarkRegion(tvRegions.Nodes[0], false, level, 1); } else { TreeUtil.MarkRegion(tvRegions.SelectedNode, false, false); } _enableSearch = true; LoadRisksDataGrid(); } }