public static void Backup() { Data.Database dataDatabase; string backupPath; backupPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Backup"); if (!Directory.Exists(backupPath)) Directory.CreateDirectory(backupPath); dataDatabase = new Data.Database(); dataDatabase.Backup(backupPath); dataDatabase.Dispose(); }