public CustomerDetailWindow(ICustomerDetailViewModel customerDetailViewModel) { InitializeComponent(); _customerDetailViewModel = customerDetailViewModel; _customerDetailViewModel.Customer = Customer; DataContext = _customerDetailViewModel; }
public CustomerDetailControl(ICustomerDetailViewModel newCustomerVM) { InitializeComponent(); DataContext = newCustomerVM; }