public void Dispose() { if (Refs > 0) { Refs--; return; } if (FDataSource != null) { FDataSource.Dispose(); } if (Rows != null) { foreach (TOneRowValue r in Rows) { if (r != null) { r.Dispose(); } } } if (Images != null) { Images.Dispose(); } for (int i = 0; i < DetailBands.Count; i++) { TBand db = DetailBands[i]; db.Dispose(); } GC.SuppressFinalize(this); }
public void Dispose() { if (MainBand != null) { MainBand.Dispose(); } if (Report != null) { Report.Unload(); #if (!COMPACTFRAMEWORK) ((IDisposable)Report).Dispose(); #endif } Report = null; MainBand = null; GC.SuppressFinalize(this); }