Esempio n. 1
0
 private void showTreeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (ListActive == 1)
     {
         if (showTree1ToolStripMenuItem.Checked == true)
         {
             List1.HideTreeView();
             showTree1ToolStripMenuItem.Checked  = false;
             showTree1ToolStripMenuItem1.Checked = false;
         }
         else
         {
             List1.ShowTreeView();
             showTree1ToolStripMenuItem.Checked  = true;
             showTree1ToolStripMenuItem1.Checked = true;
         }
     }
     else
     {
         if (showTree2ToolStripMenuItem.Checked == true)
         {
             List2.HideTreeView();
             showTree2ToolStripMenuItem.Checked  = false;
             showTree2ToolStripMenuItem1.Checked = false;
         }
         else
         {
             List2.ShowTreeView();
             showTree2ToolStripMenuItem.Checked  = true;
             showTree2ToolStripMenuItem1.Checked = false;
         }
     }
 }
Esempio n. 2
0
 private void showTree1ToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (showTree1ToolStripMenuItem1.Checked == true)
     {
         showTree1ToolStripMenuItem.Checked  = false;
         showTree1ToolStripMenuItem1.Checked = false;
         List1.HideTreeView();
     }
     else
     {
         showTree1ToolStripMenuItem.Checked  = true;
         showTree1ToolStripMenuItem1.Checked = true;
         List1.ShowTreeView();
     }
 }