internal static void ShowOrHideButtons(HtmlTable tblABM, eAccionABM accion) { switch (accion) { case eAccionABM.Add: SetTableCell("Add", tblABM, true); SetTableCell("Save", tblABM, false); SetTableCell("Delete", tblABM, false); SetTableRow("Msg", tblABM, false); SetTableRow("Abm", tblABM, true); break; case eAccionABM.Delete: SetTableCell("Add", tblABM, false); SetTableCell("Save", tblABM, false); SetTableCell("Delete", tblABM, true); SetTableRow("Msg", tblABM, true); SetTableRow("Abm", tblABM, false); break; case eAccionABM.Edit: SetTableCell("Add", tblABM, false); SetTableCell("Save", tblABM, true); SetTableCell("Delete", tblABM, false); SetTableRow("Msg", tblABM, false); SetTableRow("Abm", tblABM, true); break; } }
internal static void ShowOrHideButtons(HtmlTable tblABM, eAccionABM accion) { switch (accion) { case eAccionABM.Add: SetTableCell("Add", tblABM, true); SetTableCell("Save", tblABM, false); SetTableCell("Delete", tblABM, false); SetTableRow("Msg", tblABM, false); SetTableRow("Abm", tblABM, true); break; case eAccionABM.Delete: SetTableCell("Add", tblABM, false); SetTableCell("Save", tblABM, false); SetTableCell("Delete", tblABM, true); SetTableRow("Msg", tblABM, true); SetTableRow("Abm", tblABM, false); break; case eAccionABM.Edit: SetTableCell("Add", tblABM, false); SetTableCell("Save", tblABM, true); SetTableCell("Delete", tblABM, false); SetTableRow("Msg", tblABM, false); SetTableRow("Abm", tblABM, true); break; } }