Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r2317b0fac1e6995eb9b20917a7be076f1cdc4b6c -rf77769566442052f515f3d5809f30f308ff045a8 --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 2317b0fac1e6995eb9b20917a7be076f1cdc4b6c) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision f77769566442052f515f3d5809f30f308ff045a8) @@ -478,9 +478,9 @@ ContextMenuStrip = (nodeData, parentData, treeViewControl) => { var addItem = new StrictContextMenuItem( - RingtoetsCommonFormsResources.RingtoetsProject_DisplayName, + RingtoetsFormsResources.AddAssessmentSection_DisplayName, RingtoetsCommonFormsResources.RingtoetsProject_ToolTip, - GuiResources.PlusIcon, + RingtoetsFormsResources.AddAssessmentSectionFolder, (s, e) => assessmentSectionFromFileCommandHandler.AddAssessmentSectionFromFile()); return Gui.Get(nodeData, treeViewControl) @@ -702,7 +702,7 @@ #endregion #region AssessmentSection - + private object[] AssessmentSectionChildNodeObjects(IAssessmentSection nodeData) { var childNodes = new List @@ -1004,6 +1004,7 @@ RestoreDirectory = true, CheckFileExists = false }) + { if (dialog.ShowDialog(Gui.MainWindow) == DialogResult.OK) { try @@ -1015,6 +1016,7 @@ log.Error(exception.Message, exception); } } + } } /// @@ -1040,6 +1042,7 @@ } using (var hydraulicBoundaryLocationsImporter = new HydraulicBoundaryDatabaseImporter()) + { if (hydraulicBoundaryLocationsImporter.Import(assessmentSection, databaseFile)) { if (isClearConfirmationGiven) @@ -1050,6 +1053,7 @@ log.InfoFormat(RingtoetsFormsResources.RingtoetsPlugin_SetBoundaryDatabaseFilePath_Database_on_path_0_linked, assessmentSection.HydraulicBoundaryDatabase.FilePath); } + } } private static bool IsClearCalculationConfirmationGiven()