예제 #1
0
        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;
        }
예제 #2
0
 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);
     }
 }