/// <summary>
        /// 添加主菜单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 添加主ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CurrentPerssmion = null;
            string code = GenalMenuCode("");

            SYSTEMSET.frmPermissionSet_Info fm = new frmPermissionSet_Info(1, code, null);
            fm.ShowDialog();
            if (CurrentPerssmion != null)
            {
                TreeNode tn = new TreeNode();
                tn.Tag                = CurrentPerssmion;
                tn.Text               = CurrentPerssmion.Perm_name;
                tn.ImageIndex         = 0;
                tn.SelectedImageIndex = 0;
                trvMenuOrButton.Nodes.Add(tn);
                trvMenuOrButton.Refresh();
            }

            if (rbtnMenu.Checked)
            {
                RefleshGrid(1);
            }
            else
            {
                RefleshGrid(2);
            }
        }
 /// <summary>
 /// 添加按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     CurrentPerssmion = null;
     SYSTEMSET.frmPermissionSet_Info fm = new frmPermissionSet_Info(2, "", null);
     fm.ShowDialog();
     if (CurrentPerssmion != null)
     {
         TreeNode tn = new TreeNode();
         tn.Tag                = CurrentPerssmion;
         tn.Text               = CurrentPerssmion.Perm_name;
         tn.ImageIndex         = 1;
         tn.SelectedImageIndex = 1;
         trvMenuOrButton.Nodes.Add(tn);
     }
     RefleshGrid(2);
 }
 /// <summary>
 /// 对结点进行修改操作
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void trvMenuOrButton_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (trvMenuOrButton.SelectedNode != null)
     {
         CurrentPerssmion = null;
         Class_Permission Temp = (Class_Permission)trvMenuOrButton.SelectedNode.Tag;
         int Type = 1;
         if (rbtnButton.Checked)
         {
             Type = 2;
         }
         frmPermissionSet_Info fm = new frmPermissionSet_Info(Type, "", Temp);
         fm.ShowDialog();
         if (CurrentPerssmion != null)
         {
             trvMenuOrButton.SelectedNode.Tag  = CurrentPerssmion;
             trvMenuOrButton.SelectedNode.Text = CurrentPerssmion.Perm_name;
         }
     }
 }
 /// <summary>
 /// 添加子菜单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void 添加子菜单ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (trvMenuOrButton.SelectedNode != null)
     {
         CurrentPerssmion = null;
         Class_Permission temppermission    = (Class_Permission)trvMenuOrButton.SelectedNode.Tag;
         SYSTEMSET.frmPermissionSet_Info fm = new frmPermissionSet_Info(1, GenalMenuCode(temppermission.Perm_code), null);
         fm.ShowDialog();
         if (CurrentPerssmion != null)
         {
             TreeNode tn = new TreeNode();
             tn.Tag                = CurrentPerssmion;
             tn.Text               = CurrentPerssmion.Perm_name;
             tn.ImageIndex         = 0;
             tn.SelectedImageIndex = 0;
             trvMenuOrButton.SelectedNode.Nodes.Add(tn);
         }
         RefleshGrid(1);
     }
 }