Fixed DeleteWindow and allowed it to close.

This commit is contained in:
alphafetus committed 2023-11-23 18:19:47 -05:00
1 parent 83a08edb2e
commit f98ff942bb
13 files changed
+361 -22

No files matched your search

+5 -3
View File
@@ -37,14 +37,16 @@ public class CoinDatabase {
private SQLiteConnection CreateConnection() {
// Check if database exists.
if (!System.IO.File.Exists("%USERPROFILE%\\coin_collection")) {
if (!System.IO.File.Exists("coin_collection")) {
// Create the database.
SQLiteConnection.CreateFile("%USERPROFILE%\\coin_collection");
Console.Write("Creating database... ");
SQLiteConnection.CreateFile("coin_collection");
Console.WriteLine("Done.");
}
// Create a connection to the database.
SQLiteConnection connection =
new SQLiteConnection("DataSource=%USERPROFILE%\\coin_collection");
new SQLiteConnection("DataSource=coin_collection");
// Open the connection.
try {