/// <summary> /// Role button click event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnRoles_Activate(object sender, EventArgs e) { Documents.Roles rolesDoc = new TACS.NET_Manager.Documents.Roles(this, treeProj.SelectedNode.Name); rolesDoc.Manager = sandDockManager1; rolesDoc.OpenDocked(TD.SandDock.ContainerDockLocation.Center); }
/// <summary> /// Open roles menu item event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mnuOpenRoles_Activate(object sender, EventArgs e) { ProjectsBox projectBox = new ProjectsBox(this.CurrentAccountId); if (projectBox.ShowDialog() == DialogResult.OK) { Documents.Roles rolesDoc = new TACS.NET_Manager.Documents.Roles(this, projectBox.SelectedProject); rolesDoc.Manager = sandDockManager1; rolesDoc.OpenDocked(TD.SandDock.ContainerDockLocation.Center); } projectBox.Close(); }