dmitrysenkovich

Untitled

Sep 10th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: MainWindow.cs
  2. ===================================================================
  3. --- MainWindow.cs   (revision 6407)
  4. +++ MainWindow.cs   (working copy)
  5. @@ -1692,6 +1692,19 @@
  6.              }
  7.          }
  8.  
  9. +        private void DetectStateOfTaxiway(ToolStripMenuItem toolStripMenuItem)
  10. +        {
  11. +            toolStripMenuItem.Visible = false;
  12. +            var node = projectTreeView.SelectedNode;
  13. +            if (node == null)
  14. +                return;
  15. +            var index = node.Parent.Nodes.IndexOf(node);
  16. +            var item = GetCategoryByTreeNode(node.Parent).items[index];
  17. +            if (item is AirfieldItem)
  18. +                if ((item as AirfieldItem).PathType == AirfieldItem.Type.Taxiways)
  19. +                    toolStripMenuItem.Visible = true;
  20. +        }
  21. +
  22.          private void DetectRemoveState(ToolStripMenuItem toolStripMenuItem)
  23.          {
  24.              toolStripMenuItem.Enabled = isRemovableNode(projectTreeView.SelectedNode);
  25. @@ -2658,6 +2671,7 @@
  26.              DetectStateOfOffshoreStrip(offshore_contextMenuStrip);
  27.              DetectStateOfAssign(assignToolStripMenuItem);
  28.              DetectStateOfAssign(newOffshoreFile_toolStripMenuItem);
  29. +            DetectStateOfTaxiway(viewTaxiwaysToolStripMenuItem);
  30.              DetectRemoveState(removeToolStripMenuItem);
  31.              DetectStateOfExcludeFromBuild(excludeFromBuildOffshoreToolStripMenuItem);
  32.              DetectStateOfViewDumpReferences(node, toolStripSeparator37, viewReferences_offshore_ToolStripMenuItem,
Advertisement
Add Comment
Please, Sign In to add comment