Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs
===================================================================
diff -u -rbd29bacc20bc58cc67f27dd33fa4fa6b41db873c -r4435a35be229b12da5859395985ad38c9c5d4729
--- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision bd29bacc20bc58cc67f27dd33fa4fa6b41db873c)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision 4435a35be229b12da5859395985ad38c9c5d4729)
@@ -36,7 +36,7 @@
///
/// This class represents a factory for creating .
///
- public class RingtoetsContextMenuItemFactory
+ public static class RingtoetsContextMenuItemFactory
{
///
/// Creates a which is bound to the action of adding new calculation groups.
@@ -201,7 +201,7 @@
}
///
- /// Creates a which is bound to the action of clearing the output of all calculations in the failure mechanism.
+ /// Creates a which is bound to the action of clearing the output of all calculations in a failure mechanism.
///
/// The failure mechanism to clear the output for.
/// The created .
@@ -225,7 +225,7 @@
/// Creates a which is bound to the action of performing all calculations in a failure mechanism.
///
/// The type of the failure mechanism context.
- /// The failure mechanism to perform all calculations for.
+ /// The failure mechanism context belonging to the failure mechanism.
/// The action that performs all calculations.
/// The func that checks if the item is enabled.
/// The created .
@@ -259,18 +259,18 @@
}
///
- /// Creates a which is bound to the action of changing the relevance of the failure mechanism.
+ /// Creates a which is bound to the action of changing the relevance of a failure mechanism.
///
/// The type of the failure mechanism context.
- /// The failure mechanism to set the relevance of.
+ /// The failure mechanism context belonging to the failure mechanism.
/// The action that removes all views.
/// The created .
public static StrictContextMenuItem CreateChangeRelevancyOfFailureMechanismItem(
TFailureMechanismContext failureMechanismContext,
Action removeAllViewsForItemAction)
where TFailureMechanismContext : IFailureMechanismContext
{
- var changeRelevancyItem = new StrictContextMenuItem(
+ return new StrictContextMenuItem(
Resources.FailureMechanismContextMenuStrip_Is_relevant,
Resources.FailureMechanismContextMenuStrip_Is_relevant_Tooltip,
Resources.Checkbox_ticked,
@@ -280,7 +280,6 @@
failureMechanismContext.WrappedData.IsRelevant = false;
failureMechanismContext.WrappedData.NotifyObservers();
});
- return changeRelevancyItem;
}
private static void ClearAllCalculationOutputInFailureMechanism(IFailureMechanism failureMechanism)