//-------------------------------------------------------------------------------------------------------------
 public void DatabaseEditorOpenKey(string tDatabasePathEditor)
 {
     if (IsSecure())
     {
         string         tEditorPass      = NWDAppConfiguration.SharedInstance().GetEditorPass();
         SQLite3.Result trResultPassword = SQLite3.Key(SQLiteEditorHandle, tEditorPass, tEditorPass.Length);
         if (trResultPassword != SQLite3.Result.OK)
         {
             throw SQLiteException.New(trResultPassword, string.Format("Could not open database file with password: {0} ({1})", tDatabasePathEditor, trResultPassword));
         }
     }
 }
 //-------------------------------------------------------------------------------------------------------------
 public void DatabaseAccountOpenKey(string tDatabasePathAccount, string sSurProtection)
 {
     if (IsSecure())
     {
         string         tAccountPass     = NWDAppConfiguration.SharedInstance().GetAccountPass(sSurProtection);
         SQLite3.Result trResultPassword = SQLite3.Key(SQLiteDeviceHandle, tAccountPass, tAccountPass.Length);
         if (trResultPassword != SQLite3.Result.OK)
         {
             throw SQLiteException.New(trResultPassword, string.Format("Could not open database file with password: {0} ({1})", tDatabasePathAccount, trResultPassword));
         }
     }
 }
 //-------------------------------------------------------------------------------------------------------------
 public string DatabaseAccountName()
 {
     return(KDBPrefix + NWDAppConfiguration.SharedInstance().DatabasePrefix + NWD.K_DeviceDatabaseName);
 }