예제 #1
0
 public ProductoGrid(productoHandler productHandler)
 {
     InitializeComponent();
     this.ProductoHandler = productHandler;
     UpdateProductList();
     InitCategoryCombo();
 }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     myNavigationFrame = myFrame;
     usersHandler      = new UsersHandler();
     ProductoHandler   = new productoHandler();
 }
예제 #3
0
 public ProductShow(productoHandler productoHandler)
 {
     InitializeComponent();
     this.ProductoHandler     = productoHandler;
     comboProduct.DataContext = productoHandler;
     pos = comboProduct.SelectedIndex;
     buttonsPanel.Visibility = Visibility.Hidden;
 }
 //constructor de modificar
 public ProductNewOrModify(string title, productoHandler productoHandler, Producto producto)
 {
     InitializeComponent();
     Combo();
     productoNM.Text              = title;
     this.productoHandler         = productoHandler;
     this.producto                = producto;
     this.productGrid.DataContext = producto;
     this.verify = true;
 }
        } //validacion

        //constructor de nuevo
        public ProductNewOrModify(string title, productoHandler productoHandler)
        {
            InitializeComponent();
            Combo();
            productoNM.Text              = title;
            this.productoHandler         = productoHandler;
            this.verify                  = false;
            producto                     = new Producto();
            this.productGrid.DataContext = producto;
        }
 public ProductNewOrModify(productoHandler productoHandler)
 {
     this.productoHandler = productoHandler;
 }