public void RemoveBackup(string backup) { if (backup == null) { throw new ArgumentNullException("backup"); } _validateOpened(); _grf.Commands.RemoveFolder(backup); _grf.SyncQuickMerge(null); _grf.Close(); }
/// <summary> /// Removes a backup. /// </summary> /// <param name="backup">The backup path.</param> /// <param name="delayed">Save after removing the backup or not.</param> /// <exception cref="ArgumentNullException">backup</exception> public void RemoveBackup(string backup, bool delayed) { if (backup == null) { throw new ArgumentNullException("backup"); } _validateOpened(); _grf.Commands.RemoveFolder(backup); if (!delayed) { _grf.QuickSave(); _grf.Close(); } }
public void Init() { _grf = new GrfHolder(_grfPath, GrfLoadOptions.OpenOrNew); _grf.Close(); }
public void Init() { _grf = new GrfHolder(_grfPath, GrfLoadOptions.OpenOrNew); _grf.Close(); _backupThread.Start(); }