24 lines
746 B
C#
24 lines
746 B
C#
using System;
|
|
|
|
namespace DTS.Common.Import.Persist
|
|
{
|
|
public class SaveGroupTemplates : SaveVariantBase
|
|
{
|
|
public SaveGroupTemplates(ImportObject importObject, IPersistCalculator persistCalculator, IImportNotification importNotification, Func<bool> isCancelled = null) :
|
|
base(importObject, persistCalculator, importNotification, isCancelled)
|
|
{
|
|
}
|
|
|
|
public override void Save()
|
|
{
|
|
foreach (var t in _importObject.GroupTemplates())
|
|
{
|
|
if (IsCancelled()) { return; }
|
|
_persistCalculator.AddDone();
|
|
_importNotification.SetProgress(_persistCalculator.ProgressValue);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|