Exemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of <see cref="IllustrationPointRow"/>.
        /// </summary>
        /// <param name="illustrationPointControlItem">The illustration point to create the row for.</param>
        /// <exception cref="ArgumentNullException">Thrown when
        /// <paramref name="illustrationPointControlItem"/> is <c>null</c>.</exception>
        public IllustrationPointRow(IllustrationPointControlItem illustrationPointControlItem)
        {
            if (illustrationPointControlItem == null)
            {
                throw new ArgumentNullException(nameof(illustrationPointControlItem));
            }

            IllustrationPointControlItem = illustrationPointControlItem;
        }
 /// <inheritdoc />
 /// <exception cref="NotSupportedException">Thrown when the top level fault tree illustration
 /// contains an illustration point that is not of type <see cref="FaultTreeIllustrationPoint"/>
 /// or <see cref="SubMechanismIllustrationPoint"/>.</exception>
 protected override object GetSelectedTopLevelIllustrationPoint(IllustrationPointControlItem selection)
 {
     return(new SelectedTopLevelFaultTreeIllustrationPoint(
                (TopLevelFaultTreeIllustrationPoint)selection.Source,
                GetIllustrationPointControlItems().Select(ipci => ipci.ClosingSituation)));
 }