Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            InvProducto _one = new InvProducto();

            _one = srv.GetOne(Globals.logEmpresa.id, "0");

            frmInvProductosDetail fDetalle = new frmInvProductosDetail(_one);

            if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK)
            {
                GetList();
                MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro agregado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            InvProducto _one = new InvProducto();

            _one = srv.GetOne(Globals.logEmpresa.id, "0");

            frmInvProductosDetail fDetalle = new frmInvProductosDetail(_one);

            if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK)
            {
                GetList();
                MessageBox.Show("Registro agregado con éxito!");
            }
        }