示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            NewCustomerForm.Visibility = Visibility.Hidden;

            Customer          customer;
            CustomerViewModel customerViewModel = new CustomerViewModel();

            customer = customerViewModel.GetById(16);
            DisplayProfile(customer);

            CustomerList.ItemsSource = customerViewModel.GetAll();
        }