SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Index: Constructor/UI/MainWindow.cs |
| 1 | + | Index: MainWindow.cs |
| 2 | =================================================================== | |
| 3 | - | --- Constructor/UI/MainWindow.cs (revision 6406) |
| 3 | + | --- MainWindow.cs (revision 6407) |
| 4 | - | +++ Constructor/UI/MainWindow.cs (working copy) |
| 4 | + | +++ MainWindow.cs (working copy) |
| 5 | - | @@ -3910,7 +3910,7 @@ |
| 5 | + | @@ -1692,6 +1692,16 @@ |
| 6 | } | |
| 7 | - | private void viewTaxiwaysToolStripMenuItem_Click(object sender, EventArgs e) |
| 7 | + | } |
| 8 | ||
| 9 | - | - var airfield = GetCategoryByTreeNode(projectTreeView.SelectedNode); |
| 9 | + | + private void DetectStateOfTaxiway(ToolStripMenuItem toolStripMenuItem) |
| 10 | - | + var airfield = GetCategoryByTreeNode(projectTreeView.SelectedNode.Parent); |
| 10 | + | + {
|
| 11 | - | var rn4 = AppEnv.Instance.terrainConfig.GetTaxiwaysOutPath(airfield as AirfieldCategory); |
| 11 | + | + toolStripMenuItem.Visible = false; |
| 12 | - | var launcher = new MapViewerLauncher("View Taxiways");
|
| 12 | + | + var node = projectTreeView.SelectedNode; |
| 13 | - | launcher.LaunchRoadNetworkViewer(rn4); |
| 13 | + | + if (node == null) |
| 14 | - | Index: Constructor/UI/MainWindow.Designer.cs |
| 14 | + | + return; |
| 15 | + if (node.Text.Contains("Taxiways"))
| |
| 16 | - | --- Constructor/UI/MainWindow.Designer.cs (revision 6406) |
| 16 | + | + toolStripMenuItem.Visible = true; |
| 17 | - | +++ Constructor/UI/MainWindow.Designer.cs (working copy) |
| 17 | + | + } |
| 18 | - | @@ -1204,6 +1204,7 @@ |
| 18 | + | + |
| 19 | - | this.editInMapViewerToolStripMenuItem, |
| 19 | + | private void DetectRemoveState(ToolStripMenuItem toolStripMenuItem) |
| 20 | - | this.editInLandViewerToolStripMenuItem, |
| 20 | + | |
| 21 | - | this.copyOffshorePathToClipboard_toolStripMenuItem, |
| 21 | + | toolStripMenuItem.Enabled = isRemovableNode(projectTreeView.SelectedNode); |
| 22 | - | + this.viewTaxiwaysToolStripMenuItem, |
| 22 | + | @@ -2658,6 +2668,7 @@ |
| 23 | - | this.toolStripSeparator37, |
| 23 | + | DetectStateOfOffshoreStrip(offshore_contextMenuStrip); |
| 24 | - | this.dumpReferences_offshore_toolStripMenuItem, |
| 24 | + | DetectStateOfAssign(assignToolStripMenuItem); |
| 25 | - | this.viewReferences_offshore_ToolStripMenuItem, |
| 25 | + | DetectStateOfAssign(newOffshoreFile_toolStripMenuItem); |
| 26 | - | @@ -2039,7 +2040,6 @@ |
| 26 | + | + DetectStateOfTaxiway(viewTaxiwaysToolStripMenuItem); |
| 27 | - | // |
| 27 | + | DetectRemoveState(removeToolStripMenuItem); |
| 28 | - | this.airfield_contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
| 28 | + | DetectStateOfExcludeFromBuild(excludeFromBuildOffshoreToolStripMenuItem); |
| 29 | - | this.airfieldSettingsToolStripMenuItem, |
| 29 | + | DetectStateOfViewDumpReferences(node, toolStripSeparator37, viewReferences_offshore_ToolStripMenuItem, |