예제 #1
0
        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();
        }
예제 #3
0
        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();
        }