public static void Set(String var, String val) { ConfigTableAdapter CTA = new ConfigTableAdapter(); if (CTA.GetCount(var) == 0) { CTA.Insert(var, val); } else { CTA.Upd(val, var); } }
public static String Get(String var) { ConfigTableAdapter CTA = new ConfigTableAdapter(); return(CTA.GetOne(var)); }