public centralVenta(Central2 central, ref usuario usuarioactual) { this.central = central; this.usuarioactual = usuarioactual; this.initialconfigs(); }
public cancelarVenta(Central2 central) { InitializeComponent(); this.central = central; this.FormClosed += (sender, args) => { central.xcancelarventa = null; }; this.initfunc(); }
private void verify() //CHECA USUARIO { if (this.DB.usrexist(this.txtuser.Text.Trim().Replace(" ", ""))) { if (this.DB.usrpasscorrecto(this.txtuser.Text.Trim().Replace(" ", ""), this.txtpass.Text.Trim())) { xfe.slide(this.firstbase, 250); this.firstbase.exitFlag = exitState.highest; this.exitFlag = exitState.highest; genericDefinitions.ALIAS = this.txtuser.Text.Trim().Replace(" ", ""); this.firstbase.Visible = false; Central2 central = new Central2(genericDefinitions.ALIAS); central.Show(); } else { genericDefinitions.dangerInfo("Password de acceso Invalido", "Aviso"); this.txtpass.Text = ""; this.txtuser.Focus(); } } else { genericDefinitions.dangerInfo("Usuario Invalido", "Aviso"); this.clear(); } }
public consultas_central(Central2 central) { this.central = central; InitializeComponent(); this.initialsettings(); this.FormClosed += (sender, args) => { this.central.consultas = null; }; }
public midformCustomer(Central2 origen) { InitializeComponent(); this.Text = "Cliente"; this.origen = origen; this.FormClosed += this.OnClose; this.stopBounds(); }
public exportdb(Central2 central) { InitializeComponent(); this.central = central; this.initialsettings(); this.FormClosed += (a, b) => { this.central.dboperations = null; }; this.aviso = new inneradvice(); }
public centraltienda(Central2 source) { this.source = source; this.global_settings(); this.ShowInTaskbar = false; }
public midformProduct(Central2 origen) { InitializeComponent(); this.origen = origen; this.FormClosed += this.onClose; this.Text = "Mercancia"; this.stopBounds(); }
public printerticketdefault(Central2 central) { InitializeComponent(); this.db = new dbop(); this.FormClosed += (sender, args) => { central.impresoras = null; }; this.stopBounds(); }
public printcbGui(Central2 central) { InitializeComponent(); this.db = new dbop(); this.xprint = new printCbar(); this.myload(); this.FormClosed += (sender, args) => { central.etiquetas = null; }; }
private void generalAcces(string usuario) { xfe.slide(this.firstbase, 250); this.firstbase.exitFlag = exitState.highest; this.exitFlag = exitState.highest; genericDefinitions.ALIAS = usuario.Replace(" ", ""); this.firstbase.Visible = false; this.firstbase.ShowInTaskbar = false; Central2 central = new Central2(genericDefinitions.ALIAS); central.Show(); }
public addCategory(Central2 central) { InitializeComponent(); this.Text = "Agregar Categoria"; this.setatribs(); this.KeyPreview = true; this.db = new dbop(); this.cat = new categoria(); this.central = central; this.FormClosed += (sender, args) => { this.closed(); }; this.stopBounds(); }
public inventarioBase(Central2 central) { InitializeComponent(); this.central = central; this.FormClosed += (s, a) => { this.central.inventario = null; }; this.initialsetts(); }
public deleteCategory(Central2 central) { InitializeComponent(); this.Text = "Eliminar Categoria"; this.KeyPreview = true; this.KeyDown += (abs, det) => { if (det.KeyData == Keys.F1) { this.onAccept(); } }; this.central = central; this.FormClosed += (sender, args) => { this.closed(); }; this.stopBounds(); }
public updatePaymode(Central2 central) { InitializeComponent(); this.central = central; this.Text = "Actualizar Modo De Pago"; this.txtname.KeyPress += (sender, args) => { if (this.txtname.Text.Trim() != "" && args.KeyChar == (char)Keys.Enter) { this.check(); } }; behaviorDefinitions.txtUPPER(this.txtname); this.stopBounds(); this.FormClosed += (sender, args) => { this.onclosed(); }; }
public deleteModopago(Central2 central) : base(central) { InitializeComponent(); this.central = central; this.txtnombre.Enabled = false; this.rtb.Enabled = false; this.Text = "Eliminar Modo de pago"; this.KeyPreview = true; this.KeyDown += (x, y) => { if (y.KeyCode == Keys.F1) { this.onaccept(); } }; this.label3.Text = "Presione F1 para Eliminar."; this.stopBounds(); }
public updateCategory(Central2 central) { InitializeComponent(); this.Text = "Actualizar Categoria"; this.initvals(); this.start.KeyPress += (send, args) => { if (args.KeyChar == (char)Keys.Enter && this.start.Text != "") { this.setcat(); } if (this.start.Text == "" && args.KeyChar == (char)Keys.Enter) { genericDefinitions.dangerInfo("Ingrese Nombre de Categoria!", "Aviso"); this.start.Focus(); } }; this.central = central; this.FormClosed += (sender, args) => { this.closed(); }; behaviorDefinitions.txtUPPER(this.start); this.stopBounds(); }
public addPayMode(Central2 central) { InitializeComponent(); this.central = central; this.Text = "Agregar Modo de pago"; this.db = new dbop(); this.modo = new modo_pago(); behaviorDefinitions.txtUPPER(this.txtnombre); this.txtnombre.KeyPress += (sender, args) => { if (args.KeyChar == (char)Keys.Enter && this.txtnombre.Text != "") { this.rtb.Focus(); } }; this.rtb.PreviewKeyDown += (sender, args) => { if (this.rtb.Text.Trim() != "" && args.KeyCode == Keys.F1) { this.onaccept(); } }; this.bcancel.Click += (x, y) => { this.oncancel(); }; this.baccept.Click += (x, y) => { this.onaccept(); }; this.FormClosed += (x, y) => { this.onclosed(); }; this.stopBounds(); }
public seepaymodes(Central2 central) : base(central) { InitializeComponent(); this.Text = "Ver modos de pago"; }
public seecategory(Central2 central) { InitializeComponent(); this.dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; this.Text = "Categorias"; this.central = central; this.Resize += (x, y) => { this.pb.Location = new Point((this.gb1.Width / 2) + this.gb1.Location.X - this.pb.Width / 2, this.pb.Location.Y); }; this.FormClosed += (x, y) => { this.onClose(); }; this.db = new DB.dbop(); behaviorDefinitions.txtOnlyNumbers(ref this.txtnumero); behaviorDefinitions.txtUPPER(this.txtname); behaviorDefinitions.txtUPPER(this.txtdesc); this.txtname.KeyUp += (x, y) => { this.onfirst(); }; this.txtdesc.KeyUp += (x, y) => { this.onsecond(); }; this.txtnumero.KeyUp += (x, y) => { this.onthird(); }; this.txtname.GotFocus += (sender, args) => { this.chargeInit(); this.txtdesc.Text = null; this.txtnumero.Text = null; }; this.txtdesc.GotFocus += (sender, args) => { this.chargeInit(); this.txtname.Text = null; this.txtnumero.Text = null; }; this.txtnumero.GotFocus += (sender, args) => { this.chargeInit(); this.txtdesc.Text = null; this.txtname.Text = null; }; this.txtname.KeyDown += (e, x) => { if (x.KeyCode == Keys.Enter) { this.txtdesc.Focus(); } }; this.txtdesc.KeyDown += (e, x) => { if (x.KeyCode == Keys.Enter) { this.txtnumero.Focus(); } }; this.txtnumero.KeyDown += (e, x) => { if (x.KeyCode == Keys.Enter) { this.txtname.Focus(); } }; }