public void SetVariablenDefault(string Variable, string Wert) { // in DB speichern ClsVariablenControler.SaveDefault(Variable, Wert); // liste updaten ClsTextVariabeln v = (from x in this.TextVariabelListe where x.ID == Variable select x).FirstOrDefault(); v.Default = Wert; }
public void SetTabellenVariableRecPerPage(string Variable, int RecPerPage) { try { ClsVariablenControler.SaveDefault(Variable, RecPerPage.ToString()); ClsTabellenVariabeln v = (from x in this.TabelleVariabelListe where x.ID == Variable select x).FirstOrDefault(); if (v != null) { v.RecPerPage = RecPerPage; } } catch (Exception ex) { ClsError.Error(this.Name, MethodBase.GetCurrentMethod().ToString(), ex); } }