Exemplo n.º 1
0
 private void deselectAllChildRegionsToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (tvRegions.SelectedNode != null)
     {
         foreach (TreeNode checkedNode in tvRegions.SelectedNode.Nodes)
         {
             TreeUtil.MarkRegion(checkedNode, false);
         }
     }
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
 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);
         }
     }
 }
Exemplo n.º 4
0
 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();
     }
 }