Skip to content

Commit

Permalink
Changed database directory to Environment.SpecialFolder location
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanosfo committed Jun 22, 2023
1 parent 55049d3 commit 140da36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DbManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ namespace MultipleMailMerger
{
public class DbManager
{
private static string pasta = "Databases";
private static string pasta = $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Multiple Mail Merger\\Databases";
private static string nomeDB = "Database";
private static string caminhoDB = $"{pasta}\\{nomeDB}.db";
private static string strConn = $"Data Source={pasta}\\{nomeDB}.db;Version=3";
private static string strConn = $"Data Source={caminhoDB};Version=3";
public string strSQL = "";

public DataTable ExecutarQuery()
Expand Down
3 changes: 3 additions & 0 deletions NOTAS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ Falta fazer:
- GUARDAR O MESMO DOCUMENTOS DE Vários REGISTOS
- GUARDAR VARIOS DOCUMENTOS DE VÀRIOS REGISTOS
- Depois de exportar documentos, na 2ºvez ao guardar os documentos sao inseridos os registos anteriores, nem com debug encontro o problema!!!


TESTAR NUM PC SEM .NET 6

0 comments on commit 140da36

Please sign in to comment.