public ProductoGrid(ProductoHandler productHandler)
 {
     InitializeComponent();
     this.ProductoHandler = productHandler;
     UpdateProductList();
     InitCategoryCombo();
 }
 public ProductoShow(ProductoHandler productoHandler)
 {
     InitializeComponent();
     this.ProductoHandler     = productoHandler;
     comboProduct.DataContext = productoHandler;
     pos = comboProduct.SelectedIndex;
     buttonsPanel.Visibility = Visibility.Hidden;
 }
 public Facturas(ProductoHandler productoHandler)
 {
     InitializeComponent();
     cliente = new Cliente();
     this.datosCliente.DataContext   = cliente;
     this.productoHandler            = productoHandler;
     this.comboProductos.ItemsSource = productoHandler.ProductList;
     listaproductosF            = new ObservableCollection <Producto>();
     tablaProductos.ItemsSource = listaproductosF;
 }
示例#4
0
 public NewOrModifyProducto(string title, ProductoHandler productoHandler)
 {
     InitializeComponent();
     Combo();
     productoNM.Text              = title;
     this.productoHandler         = productoHandler;
     this.verify                  = false;
     producto                     = new Producto();
     this.productGrid.DataContext = producto;
     myImage.Source               = imagenHandler.LoadDefaultImage();
 }
示例#5
0
 // modificar
 public NewOrModifyProducto(string title, ProductoHandler productoHandler, Producto producto)
 {
     InitializeComponent();
     Combo();
     myImage.Source               = imagenHandler.GetImage(producto.Referencia);
     productoNM.Text              = title;
     this.productoHandler         = productoHandler;
     this.producto                = producto;
     this.productGrid.DataContext = producto;
     this.verify           = true;
     tReferencia.IsEnabled = false;
 }
 public Informe(ProductoHandler productoHandler)
 {
     InitializeComponent();
     this.productoHandler = productoHandler;
 }
 public MainWindow()
 {
     InitializeComponent();
     myNavigationFrame = myFrame;
     productoHandler   = new ProductoHandler();
 }
示例#8
0
 public NewOrModifyProducto(ProductoHandler productoHandler)
 {
     this.productoHandler = productoHandler;
 }