public frmUserOrgProduct(DEFolder2 folder, DEFolder2 product) { this.SelUser = true; this.dt = new DataTable(); this.InitializeComponent(); if (folder.Oid != Guid.Empty) { this.ctluser = new UCUsers(); this.ctluser.showSysAdmin = false; this.ctluser.Dock = DockStyle.Fill; this.ctluser.lvwUser.MultiSelect = true; this.tabPage2.Controls.Add(this.ctluser); this.lvwTeam.MultiSelect = true; ArrayList productTeamMembers = (PLProductFolder.RemotingAgent as IProductFolder).GetProductTeamMembers(product.Oid); if (productTeamMembers.Count > 0) { this.tabControl1.SelectedTab = this.tabPage1; foreach (DEUser user in productTeamMembers) { ListViewItem item = this.lvwTeam.Items.Add(user.LogId, ClientData.MyImageList.GetIconIndex("ICO_RSP_USER")); item.SubItems.Add(user.Name); item.Tag = user; } } else { this.tabControl1.SelectedTab = this.tabPage2; } this.Text = "选择用户"; this.splitContainer.Panel2MinSize = 0; this.splitContainer.Panel2Collapsed = true; base.Width = 400; } }
private void hypUser_Click(object sender, RoutedEventArgs e) { UCUsers oUsers = new UCUsers(); stpContent.Children.Clear(); stpContent.Children.Add(oUsers); expMenu.IsExpanded = false; }
public FrmProductTeam(DEFolder2 Folder) { this.Teams = new ArrayList(); this.OldTeams = new ArrayList(); this.InitializeComponent(); this.folder = Folder; if (this.folder != null) { this.ctluser = new UCUsers(); this.ctluser.showSysAdmin = false; this.ctluser.Dock = DockStyle.Fill; this.ctluser.PrinSelected += new SelectPrinHandler(this.ctluser_PrinSelected); this.ctluser.lvwUser.MultiSelect = true; this.splitContainer.Panel1.Controls.Add(this.ctluser); foreach (DEUser user in (PLProductFolder.RemotingAgent as IProductFolder).GetProductTeamMembers(this.folder.Oid)) { ListViewItem item = this.lvwTeam.Items.Add(user.LogId, ClientData.MyImageList.GetIconIndex("ICO_RSP_USER")); item.SubItems.Add(user.Name); item.Tag = user.Oid; this.Teams.Add(user.Oid); this.OldTeams.Add(user.Oid); } } }
private void btnUsers_Click(object sender, EventArgs e) { UCUsers users = new UCUsers(); ISE.UILibrary.Utils.UIUtils.SetFrmTrans(users, "کاربران", FormBorderStyle.Sizable); }