//[ImportingConstructor] public ChildViewModel(IParentChildService parentChildService) { if (parentChildService == null) { throw new ArgumentNullException("parentChildService"); } Name = "Bon"; this.SubmitCommand = new DelegateCommand<object>(this.OnSubmit); this.AddressViewModel = new AddressViewModel(); this._parentChildService = parentChildService; }
public ChildModule(IRegionViewRegistry registry, IParentChildService parentChildService) { this._regionViewRegistry = registry; this._parentChildService = parentChildService; }