예제 #1
0
    private void SetData_Resource_XML()
    {
        CSSql_DataBase SqliteScript = Main.inst.GetSqliteManager().GetSql_DataBase();

        try
        {
            if (SqliteScript.Parse_Resource())
            {
                while (SqliteScript.FetchRow())
                {
                    int count = 0;

                    string _resourceName = SqliteScript.GetRowString(count++);
                    string _resourcePath = SqliteScript.GetRowString(count++);

                    m_tableData_Resource.Add(_resourceName, _resourcePath);
                }
            }
            else
            {
                throw new Exception(MethodBase.GetCurrentMethod().Name + ": Open Failed.");
            }
        }
        catch (Exception e)
        {
            DebugError(MethodBase.GetCurrentMethod().Name + ": " + e.ToString());
        }
        finally
        {
            SqliteScript.CloseParsing();
        }
    }
예제 #2
0
    private void SetData_Explain()
    {
        if (m_tableData_Explain == null)
        {
            m_tableData_Explain = new Dictionary <int, string>();
        }
        m_tableData_Explain.Clear();

        CSSql_DataBase SqliteScript = Main.inst.GetSqliteManager().GetSql_DataBase();

        try
        {
            if (SqliteScript.Parse_Resource())
            {
                while (SqliteScript.FetchRow())
                {
                    int count = 0;

                    int    _explainIndex = SqliteScript.GetRowInt(count++);
                    string _explainText  = SqliteScript.GetRowString(count++);

                    m_tableData_Explain.Add(_explainIndex, _explainText);
                }
            }
            else
            {
                throw new Exception(MethodBase.GetCurrentMethod().Name + ": Open Failed.");
            }
        }
        catch (Exception e)
        {
            DebugError(MethodBase.GetCurrentMethod().Name + ": " + e.ToString());
        }
        finally
        {
            SqliteScript.CloseParsing();
        }
    }