public void AddFlatInListWithBaseInfo(object sender, AppendFlatEventArgs arg) { //Log.Debug($"Add flat - {arg.Flat}"); listFlatsWithBaseInfo.Add(arg.Flat); if (listFlatsWithBaseInfo.Count >= 10) { ExecuteWithBaseInfo(); } }
public void AddFlatInList(object sender, AppendFlatEventArgs arg) { //Log.Debug($"Add flat - {arg.Flat}"); listFlats.Add(arg.Flat); if (listFlats.Count == 10) { ExecuteExport(); } }