Ejemplo n.º 1
0
        void ViewerPage_Unloaded(object sender, RoutedEventArgs e)
        {
            cbReport.SelectionChanged -= CbReport_SelectionChanged;

            flexViewerPane.DocumentSource = null;
            _report.Dispose();
            _report = null;
        }
Ejemplo n.º 2
0
 public void Discard()
 {
     if (Report != null)
     {
         Report.Dispose();
         Report = null;
     }
     Error = null;
 }
Ejemplo n.º 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);
 }