public Products() { InitializeComponent(); _dataDC = ModelSingleton.getDataDC; lpr = new ObservableProveedor(_dataDC); lp = new ObservableProduct(_dataDC); this.DataContext = lp; ProductsSetListView.ItemsSource = lp; }
public Provedores() { InitializeComponent(); lp = new ObservableProveedor(_dataDC); this.DataContext = lp; proveedorSetListView.ItemsSource = lp; //this.DataContext = _dataDC.ProveedorSet.ToList(); //List<ProveedorSet> pl = _dataDC.ProveedorSet.ToList(); //proveedorSetListView.ItemsSource = _dataDC.ProveedorSet.ToList(); }
public UCProviderList() { if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { _dataDC = ModelSingleton.getDataDC; InitializeComponent(); lpr = new ObservableProveedor(_dataDC); this.DataContext = lpr; providerSet1ViewSource.ItemsSource = lpr; } }