Esempio n. 1
0
 private void StepQuery(ThreadQueue.TaskControl control, object state)
 {
     try
     {
         if (db != null)
         {
             StepState stState = state as StepState;
             if (stState.Callback != null)
             {
                 while (stState.Callback(stState.Query, stState.Query.Step(), stState.State))
                 {
                 }
             }
             else
             {
                 stState.Step = stState.Query.Step();
             }
         }
         else
         {
             throw new Exception("Database not ready!");
         }
     }
     catch (Exception ex)
     {
         Debug.LogError("SQLiteAsync : Exception : " + ex.Message);
     }
 }
Esempio n. 2
0
    private void StepQueryComplete(object state)
    {
        StepState stState = state as StepState;

        stState.Callback(stState.Query, stState.Step, stState.State);
    }