Example #1
0
 public EditarProducto()
 {
     InitializeComponent();
     cajasDeTexto = new TextBox[6];
     cargarCajasDeTexto();
     buscarCajasDeTextoVacias = new BuscarTextBoxVacios();
     agregarEventosCajas_ComboBox();
     daoProducto                         = new ProductoDao();
     daoCategoria                        = new CategoriaDao();
     categoriaWorker.DoWork             += categoriaWorker_DoWork;
     categoriaWorker.RunWorkerCompleted += categoriaWorker_RunWorkerCompleted;
     categoriaWorker.RunWorkerAsync();
     soloNumeros = new SoloNumeros();
 }
 public CrearProducto()
 {
     InitializeComponent();
     comproboLaExistenciaDeProducto = false;
     cajasDeTexto = new TextBox[6];
     cargarCajasDeTexto();
     buscarCajasDeTextoVacias = new BuscarTextBoxVacios();
     agregarEventosCajas_ComboBox();
     daoProducto                         = new ProductoDao();
     daoCategoria                        = new CategoriaDao();
     categoriaWorker.DoWork             += categoriaWorker_DoWork;
     categoriaWorker.RunWorkerCompleted += categoriaWorker_RunWorkerCompleted;
     categoriaWorker.RunWorkerAsync("" /*Buscar vacio*/);
     soloNumeros = new SoloNumeros();
 }