private void btnEdit_Click(object sender, EventArgs e) { frmInvCategoriasDetail fDetalle = new frmInvCategoriasDetail(one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro editado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnAdd_Click(object sender, EventArgs e) { InvCategoria _one = new InvCategoria(); _one = srv.GetOne(Globals.logEmpresa.id, "0"); frmInvCategoriasDetail fDetalle = new frmInvCategoriasDetail(_one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro agregado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); } }