private void FxSave() { string lName = TxtName.Text.Trim(); bool lEnabled = ChkEnabled.Checked; if (lName.Length < 3) { ClsFunctions.FxMessage(1, "Ingrese nombre"); TxtName.Text = ""; TxtName.Focus(); return; } if (ClsFunctions.FxMessage(2, "¿Está seguro de guardar los cambios?") == true) { long lStoreId_new; if (lStoreId == 0) { lStoreId_new = ClsSqlAdministrator.Fx_ins_tblStore(lName); } else { lStoreId_new = ClsSqlAdministrator.Fx_upt_tblStore(lStoreId, lName, lEnabled); } if (lStoreId_new > 0) { FxExit(); } } }