示例#1
0
 public CustomersView(CustomersViewModel model)
 {
     InitializeComponent();
     DataContext          = model;
     _custVewModel        = new CustomersViewModel();
     dataSource           = _custVewModel.AutoFillCountry();
     dataSourceState      = _custVewModel.AutoFillState();
     dataSourceCity       = _custVewModel.AutoFillCity();
     dataSourcePostalCode = _custVewModel.AutoFillPostalCode();
     dataSourceShiping.AddRange(dataSource);
     dataSourceStateShiping.AddRange(dataSourceState);
     dataSourceCityShiping.AddRange(dataSourceCity);
 }