public bool Show(int accountRelationshipId, out AccountRelationship updatedAccountRelationship) { updatedAccountRelationship = null; IAccountRelationshipDetailsViewModel viewModel = m_accountRelationshipDetailsViewModelFactory.Create(accountRelationshipId); var window = new AccountRelationshipDetailsWindow(viewModel); bool?result = window.ShowDialog(); if (result.HasValue) { updatedAccountRelationship = viewModel.ToAccountRelationship(); return(result.Value); } return(false); }
public AccountRelationshipDetailsWindow(IAccountRelationshipDetailsViewModel viewModel) { InitializeComponent(); DataContext = viewModel; }