예제 #1
0
        public static void UpdateReference(DebugSections section, string key, string value, DebugTypes type)
        {
            foreach (DataRow r in values.Rows)
            {
                if ((DebugSections)r["section"] == section && (string)r["key"] == key && (DebugTypes)r["type"] == type)
                {
                    r["value"] = value;
                    break;
                }
            }

            txt = String.Empty;

            foreach (DataRow r in values.Rows)
            {
                if ((int)r["section"] == currSection)
                {
                    if ((DebugTypes)r["type"] == DebugTypes.Title)
                    {
                        txt += r["value"].ToString() + "\n--------------";
                    }
                    if ((DebugTypes)r["type"] == DebugTypes.Value)
                    {
                        txt += "\n" + r["key"].ToString() + ": " + r["value"].ToString();
                    }
                }
            }
        }
예제 #2
0
        public static void AddReference(DebugSections section, string key, string value, DebugTypes type)
        {
            foreach (DataRow r in values.Rows)
            {
                if ((DebugSections)r["section"] == section && (string)r["key"] == key && (DebugTypes)r["type"] == type)
                {
                    return;
                }
            }

            values.Rows.Add(section, key, value, type);
        }