Example #1
0
        public static string GetStringKey(string key, string defaultValue)
        {
            string value = defaultValue;

            Database d = new Database();
            d.Open();

            value = d.GetKey(key);

            return value;
        }
Example #2
0
        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;
        }
Example #3
0
        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;
        }
Example #4
0
 private void openOrCreateSQLiteDatabase()
 {
     this.m_db = new PuttyWrap.Classes.Database();
     this.m_db.Open();
 }
Example #5
0
 private void openOrCreateSQLiteDatabase()
 {
     this.m_db = new PuttyWrap.Classes.Database();
     this.m_db.Open();
 }
Example #6
0
        public static void SetKeyStatic(string key, string value)
        {
            Database d = new Database();
            d.Open();

            d.SetKey(key, value);
        }