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); }
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)); }
public ParameterIdentificationFolderContextMenu(ITreeNode <RootNodeType> treeNode, IExplorerPresenter presenter) { _view.AddMenuItem(ParameterIdentificationContextMenuItems.CreateParameterIdentification()); _view.AddMenuItem(ClassificationCommonContextMenuItems.CreateClassificationUnderMenu(treeNode, presenter).AsGroupStarter()); _view.AddMenuItem(ClassificationCommonContextMenuItems.RemoveClassificationFolderMainMenu(treeNode, presenter)); }
protected IMenuBarButton CreateGroupMenuFor(ClassificationNode classificationNode, TPresenter presenter) { return(ClassificationCommonContextMenuItems.CreateClassificationUnderMenu(classificationNode, presenter)); }
public SensitivityAnalysisFolderContextMenu(ITreeNode <RootNodeType> treeNode, IExplorerPresenter presenter) { _view.AddMenuItem(SensitivityAnalysisContextMenuItems.CreateSensitivityAnalysis()); _view.AddMenuItem(ClassificationCommonContextMenuItems.CreateClassificationUnderMenu(treeNode, presenter).AsGroupStarter()); _view.AddMenuItem(ClassificationCommonContextMenuItems.RemoveClassificationFolderMainMenu(treeNode, presenter)); }