コード例 #1
0
ファイル: Database.cs プロジェクト: cv1973/MoneyFlow
        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();
        }