Exemplo n.º 1
0
 private void toolStripPrintPreview_Click(object sender, EventArgs e)
 {
     if (uxReportOutstandingCRView == null)
     {
         uxReportOutstandingCRView           = new Addons.ReportOutstanding.Reports.UXReportOutstandingCRView();
         uxReportOutstandingCRView.Disposed += new EventHandler(uxReportOutstandingCRView_Disposed);                 //Add Disposed EventHandler
         uxReportOutstandingCRView.MdiParent = this.ParentForm;
         uxReportOutstandingCRView.Show();
         uxReportOutstandingCRView.Dock = DockStyle.Fill;
         uxReportOutstandingCRView.BringToFront();
     }
     else
     {
         uxReportOutstandingCRView.Activate();
         uxReportOutstandingCRView.BringToFront();
     }
 }
Exemplo n.º 2
0
 private void uxReportOutstandingCRView_Disposed(object sender, EventArgs e)
 {
     uxReportOutstandingCRView = null;
 }