void ViewerPage_Unloaded(object sender, RoutedEventArgs e) { cbReport.SelectionChanged -= CbReport_SelectionChanged; flexViewerPane.DocumentSource = null; _report.Dispose(); _report = null; }
public void Discard() { if (Report != null) { Report.Dispose(); Report = null; } Error = null; }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { if (report != null) { c1FlexViewer1.DocumentSource = null; report.Dispose(); report = null; } if (components != null) { components.Dispose(); } } base.Dispose(disposing); }