コード例 #1
0
        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);
        }
コード例 #2
0
        public AccountRelationshipDetailsWindow(IAccountRelationshipDetailsViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }