public static void StartChangeCollecting(string Description) { if (CollectChanges) { ARCING = true; return; } CollectChanges = true; TempChangeCollection = new ChangeCollection(); TempChangeCollection.Description = Description; }
public static void EndChangeCollecting() { if (ARCING) { ARCING = false; return; } CollectChanges = false; if (TempChangeCollection.Changes.Count > 0) { AddChange(TempChangeCollection); } TempChangeCollection = null; }