Example #1
0
        public DpdtBindingDetailViewModel(
            IDpdtBindingDetail target
            )
        {
            _target = target;

            BindScope           = target.BindScope;
            ConditionalBinding  = target.ConditionalBinding;
            ConventionalBinding = target.ConventionalBinding;
        }
        /// <inheritdoc />
        public DpdtBindingTargetViewModel(
            IDpdtBindingTarget target
            )
        {
            if (target is null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            _target = target;

            BindingUniqueUnstableIdentifier = target.BindingUniqueUnstableIdentifier;
            ClusterDetail = new DpdtClusterDetailViewModel(
                target.ClusterDetail
                );
            BindingDetail = new DpdtBindingDetailViewModel(
                target.BindingDetail
                );
        }
Example #3
0
        public DpdtBindingTarget(
            Guid bindingUniqueUnstableIdentifier,
            DpdtClusterDetail clusterDetail,
            DpdtBindingDetail bindingDetail
            )
        {
            if (clusterDetail is null)
            {
                throw new ArgumentNullException(nameof(clusterDetail));
            }

            if (bindingDetail is null)
            {
                throw new ArgumentNullException(nameof(bindingDetail));
            }

            BindingUniqueUnstableIdentifier = bindingUniqueUnstableIdentifier;
            ClusterDetail = clusterDetail;
            BindingDetail = bindingDetail;
        }