edited file for copying database from resources
This commit is contained in:
parent
ddfb14a269
commit
116f0979ef
1 changed files with 2 additions and 2 deletions
|
@ -18,13 +18,13 @@ namespace Saviour_Backup_System
|
|||
|
||||
private static void copyDatabase()
|
||||
{
|
||||
File.WriteAllBytes(@"\" + databaseName, Resources.saviour);
|
||||
File.WriteAllBytes(@"" + databaseName, Resources.saviour); //copy file from resources to project file
|
||||
}
|
||||
|
||||
|
||||
internal static void init() {
|
||||
if (!File.Exists(databaseName)) { //if the database doesnt exists (program hasnt been run before)
|
||||
|
||||
copyDatabase();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue