コード例 #1
0
ファイル: Database.cs プロジェクト: cooldroid/PuttyWrap
        public static string GetStringKey(string key, string defaultValue)
        {
            string value = defaultValue;

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

            value = d.GetKey(key);

            return value;
        }
コード例 #2
0
ファイル: Database.cs プロジェクト: git-thinh/PuttyWrap-CS
        public static string GetStringKey(string key, string defaultValue)
        {
            string value = defaultValue;

            Database d = new Database();

            d.Open();

            value = d.GetKey(key);

            return(value);
        }
コード例 #3
0
ファイル: Database.cs プロジェクト: cooldroid/PuttyWrap
        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;
        }
コード例 #4
0
ファイル: Database.cs プロジェクト: cooldroid/PuttyWrap
        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;
        }
コード例 #5
0
ファイル: Database.cs プロジェクト: git-thinh/PuttyWrap-CS
        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);
        }
コード例 #6
0
ファイル: Database.cs プロジェクト: git-thinh/PuttyWrap-CS
        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);
        }