Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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();
 }