public rVenta()
 {
     InitializeComponent();
     this.DataContext = Venta;
     //Se llena el ComboBox ArticulosId
     ArticuloIdComboBox.ItemsSource       = ArticulosBLL.GetListArticulos();
     ArticuloIdComboBox.SelectedValuePath = "ArticuloId";
     ArticuloIdComboBox.DisplayMemberPath = "Descripcion";
     //Se llena el ComboBox Fotografos
     FotografoComboBox.ItemsSource       = FotografosBLL.GetList();
     FotografoComboBox.SelectedValuePath = "FotografoId";
     FotografoComboBox.DisplayMemberPath = "Nombres";
 }
Exemple #2
0
 public rCompras()
 {
     InitializeComponent();
     this.DataContext = Compra;
     //Se llena el ComboBox ArticulosId
     ArticuloIdComboBox.ItemsSource       = ArticulosBLL.GetListArticulos();
     ArticuloIdComboBox.SelectedValuePath = "ArticuloId";
     ArticuloIdComboBox.DisplayMemberPath = "Descripcion";
     //Se llena el ComboBox Suplidores
     SuplidorComboBox.ItemsSource       = SuplidoresBLL.GetSuplidores();
     SuplidorComboBox.SelectedValuePath = "SuplidorId";
     SuplidorComboBox.DisplayMemberPath = "Nombres";
 }
 //Refresca el DataContex.
 public void Cargar()
 {
     this.DataContext = null;
     ArticuloIdComboBox.ItemsSource = ArticulosBLL.GetListArticulos();
     this.DataContext = Venta;
 }
 public void GetListArticulosTest()
 {
     Assert.IsTrue(ArticulosBLL.GetListArticulos() != null);
 }