コード例 #1
0
        public static IMenuBarItem RemoveSimulationFolderMainMenu(ITreeNode <RootNodeType> simulationFolderNode, IExplorerPresenter presenter)
        {
            var groupMenu = CreateSubMenu.WithCaption(MenuNames.DeleteSubMenu)
                            .WithIcon(ApplicationIcons.Remove)
                            .AsGroupStarter();

            groupMenu.AddItem(ClassificationCommonContextMenuItems.DeleteChildrenClassificationsAndDateMenu(simulationFolderNode, presenter));
            groupMenu.AddItem(ClassificationCommonContextMenuItems.DeleteChildrenClassificationsAndKeepDataMenu(simulationFolderNode, presenter));
            return(groupMenu);
        }
コード例 #2
0
        protected override IEnumerable <IMenuBarItem> AllMenuItemsFor(ClassificationNode classificationNode, TPresenter presenter)
        {
            yield return(RenameGroupMenuFor(classificationNode, presenter));

            yield return(CreateGroupMenuFor(classificationNode, presenter));

            var groupMenu = AddClassificationMenu(classificationNode, presenter);

            if (groupMenu.AllItems().Any())
            {
                yield return(groupMenu);
            }

            yield return(ClassificationCommonContextMenuItems.RemoveClassificationMainMenu(classificationNode, presenter));
        }
コード例 #3
0
 public ParameterIdentificationFolderContextMenu(ITreeNode <RootNodeType> treeNode, IExplorerPresenter presenter)
 {
     _view.AddMenuItem(ParameterIdentificationContextMenuItems.CreateParameterIdentification());
     _view.AddMenuItem(ClassificationCommonContextMenuItems.CreateClassificationUnderMenu(treeNode, presenter).AsGroupStarter());
     _view.AddMenuItem(ClassificationCommonContextMenuItems.RemoveClassificationFolderMainMenu(treeNode, presenter));
 }
コード例 #4
0
 protected IMenuBarButton CreateGroupMenuFor(ClassificationNode classificationNode, TPresenter presenter)
 {
     return(ClassificationCommonContextMenuItems.CreateClassificationUnderMenu(classificationNode, presenter));
 }
コード例 #5
0
 public SensitivityAnalysisFolderContextMenu(ITreeNode <RootNodeType> treeNode, IExplorerPresenter presenter)
 {
     _view.AddMenuItem(SensitivityAnalysisContextMenuItems.CreateSensitivityAnalysis());
     _view.AddMenuItem(ClassificationCommonContextMenuItems.CreateClassificationUnderMenu(treeNode, presenter).AsGroupStarter());
     _view.AddMenuItem(ClassificationCommonContextMenuItems.RemoveClassificationFolderMainMenu(treeNode, presenter));
 }