示例#1
0
 public void RightSetup(string projectUID, string projectName)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         ListViewItem item = listView1.SelectedItems[0];
         string       id   = item.SubItems[0].Text;
         if (showType == ShowType.Group)
         {
             FrmGroupRights dlg = new FrmGroupRights();
             dlg.Groupno     = id;
             dlg.ProjectUID  = projectUID;
             dlg.ProjectName = projectName;
             dlg.ShowDialog();
         }
         else if (showType == ShowType.User)
         {
             FrmUserGroup dlg = new FrmUserGroup();
             dlg.UserNo   = id;
             dlg.UserName = item.SubItems[1].Text;
             if (dlg.ShowDialog() == DialogResult.OK)
             {
                 MsgBox.Show("保存成功");
             }
         }
     }
 }
示例#2
0
 public void RightSetup(string projectUID,string projectName)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         ListViewItem item = listView1.SelectedItems[0];
         string id = item.SubItems[0].Text;
         if (showType == ShowType.Group)
         {
             FrmGroupRights dlg = new FrmGroupRights();
             dlg.Groupno = id;
             dlg.ProjectUID = projectUID;
             dlg.ProjectName = projectName;
             dlg.ShowDialog();
         }
         else if (showType == ShowType.User)
         {
             FrmUserGroup dlg = new FrmUserGroup();
             dlg.UserNo = id;
             dlg.UserName = item.SubItems[1].Text;
             if(dlg.ShowDialog()==DialogResult.OK)
                 MsgBox.Show("����ɹ�");
         }
     }
 }