Пример #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();
      }