public static string GetStringKey(string key, string defaultValue) { string value = defaultValue; Database d = new Database(); d.Open(); value = d.GetKey(key); return value; }
public static string GetStringKey(string key, string defaultValue) { string value = defaultValue; Database d = new Database(); d.Open(); value = d.GetKey(key); return(value); }
public static int GetIntegerKey(string key, int defaultValue) { int value = defaultValue; Database d = new Database(); d.Open(); string v = d.GetKey(key); if (v != "") { value = int.Parse(v); } return value; }
public static Boolean GetBooleanKey(string key, bool defaultValue) { bool value = defaultValue; Database d = new Database(); d.Open(); string v = d.GetKey(key); if (v != "") { value = bool.Parse(v); } return value; }
public static int GetIntegerKey(string key, int defaultValue) { int value = defaultValue; Database d = new Database(); d.Open(); string v = d.GetKey(key); if (v != "") { value = int.Parse(v); } return(value); }
public static Boolean GetBooleanKey(string key, bool defaultValue) { bool value = defaultValue; Database d = new Database(); d.Open(); string v = d.GetKey(key); if (v != "") { value = bool.Parse(v); } return(value); }