コード例 #1
0
ファイル: MainForm.cs プロジェクト: cspot/TACS.NET-Manager
 /// <summary>
 /// Add Project menu item event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mnuAddProject_Activate(object sender, EventArgs e)
 {
     Documents.Project projectDoc = new TACS.NET_Manager.Documents.Project(this, this.CurrentAccountId);
     projectDoc.Manager = sandDockManager1;
     projectDoc.OpenDocked(TD.SandDock.ContainerDockLocation.Center);
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: cspot/TACS.NET-Manager
 /// <summary>
 /// Open selected project.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void treeProj_DoubleClick(object sender, EventArgs e)
 {
     Documents.Project projectDoc = new TACS.NET_Manager.Documents.Project(this, this.CurrentAccountId,
         treeProj.SelectedNode.Name);
     projectDoc.Manager = sandDockManager1;
     projectDoc.OpenDocked(TD.SandDock.ContainerDockLocation.Center);
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: cspot/TACS.NET-Manager
 /// <summary>
 /// Delete button in Project Explorer command event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnDelProj_Activate(object sender, EventArgs e)
 {
     Documents.Project projectDoc = new TACS.NET_Manager.Documents.Project(this, this.CurrentAccountId,
         treeProj.SelectedNode.Name);
     if (MessageBox.Show("You are about to delete this project and all of its roles!  Are you sure?", "Warning",
         MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
     {
         projectDoc.DeleteRecord();
         ShowProjects();
     }
 }