예제 #1
0
        void ViewerPage_Unloaded(object sender, RoutedEventArgs e)
        {
            cbReport.SelectionChanged -= CbReport_SelectionChanged;

            flexViewerPane.DocumentSource = null;
            _report.Dispose();
            _report = null;
        }
예제 #2
0
 public void Discard()
 {
     if (Report != null)
     {
         Report.Dispose();
         Report = null;
     }
     Error = null;
 }
예제 #3
0
 /// <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);
 }