private void ActionDoubleClick(object p) { CustomerModel customer = (CustomerModel)p; CustomerDetail customerDetail = new CustomerDetail(customer); customerDetail.Show(); }
public void Execute(object parameter) { CustomerDetailVm viewModel = new CustomerDetailVm(new Customer()); CustomerDetail customerDetail = new CustomerDetail(viewModel); customerDetail.Show(); }
public void Execute(object parameter) { var mainViewModel = (MainViewModel)Application.Current.Properties["mainViewModel"]; var customerConverter = new CustomerConverter(mainViewModel.SelectedItemRow); var customer = customerConverter.Convert(); CustomerDetailVm viewModel = new CustomerDetailVm(customer); CustomerDetail customerDetail = new CustomerDetail(viewModel); customerDetail.Show(); }