示例#1
0
        /// <summary>
        /// creates form for adding group
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            AddGroupForm objPopUpForm = null;

            if (treeView1.SelectedNode != null)
            {
                objPopUpForm = new AddGroupForm((int)treeView1.SelectedNode.Tag);
            }
            else
            {
                objPopUpForm = new AddGroupForm(0);
            }

            objPopUpForm.ShowDialog();
            UpdateTree();
        }
示例#2
0
      /// <summary>
      /// creates form for adding group
      /// </summary>
      /// <param name="sender"></param>
      /// <param name="e"></param>
      private void ToolStripMenuItem2_Click(object sender, EventArgs e) {
         AddGroupForm objPopUpForm = null;
         if(treeView1.SelectedNode != null) {
            objPopUpForm = new AddGroupForm((int)treeView1.SelectedNode.Tag);
         }
         else {
            objPopUpForm = new AddGroupForm(0);
         }

         objPopUpForm.ShowDialog();
         UpdateTree();
      }