Ejemplo n.º 1
0
 public updateProduct(midformProduct origen)
 {
     InitializeComponent();
     this.txt4.Enabled    = false;
     this.Shown          += (sender, args) => { this.onshown(); };
     this.Text            = "Actualizar Producto";
     this.label3.Text     = "Inventario:";
     this.label3.Location = new Point(25, txt3.Location.Y);
     this.stopBounds();
 }
Ejemplo n.º 2
0
 public addProduct(midformProduct origen)
 {
     InitializeComponent();
     this.Text   = "Agregar Producto";
     this.origen = origen;
     this.origen.addbtn.Enabled = false;
     this.FormClosed           += (x, y) => { this.origen.addbtn.Enabled = true; };
     this.cbar = new cb();
     this.db   = new dbop();
     this.setAtribs();
     this.stopBounds();
 }
 public deleteProduct(midformProduct origen)
 {
     InitializeComponent();
     this.Text   = "Eliminar Producto";
     this.origen = origen;
     this.origen.deletebtn.Enabled = false;
     this.FormClosed += (x, y) => { this.origen.deletebtn.Enabled = true; };
     this.KeyPreview  = true;
     this.KeyPress   += (s, a) => { if (a.KeyChar == (char)Keys.Enter)
                                    {
                                        this.onAccept();
                                    }
     };
     this.stopBounds();
 }