예제 #1
0
        public void RemoveBackup(string backup)
        {
            if (backup == null)
            {
                throw new ArgumentNullException("backup");
            }

            _validateOpened();

            _grf.Commands.RemoveFolder(backup);
            _grf.SyncQuickMerge(null);
            _grf.Close();
        }
예제 #2
0
        /// <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();
            }
        }
예제 #3
0
		public void Init() {
			_grf = new GrfHolder(_grfPath, GrfLoadOptions.OpenOrNew);
			_grf.Close();
		}
예제 #4
0
 public void Init()
 {
     _grf = new GrfHolder(_grfPath, GrfLoadOptions.OpenOrNew);
     _grf.Close();
     _backupThread.Start();
 }