public void Action()
 {
     if (DataContext != null)
     {
         Enova.Business.Old.Core.IPrintable p = (Enova.Business.Old.Core.IPrintable)DataContext.Current;
         new AbakTools.Printer.ReportForm(p.ReportTitle, p.ReportPath, p.ReportDataSources).Show();
     }
 }
示例#2
0
 private void printToolStripButton_Click(object sender, EventArgs e)
 {
     if (DataSourceBinding.Current != null && DataSourceBinding.Current is Enova.Business.Old.Core.IPrintable)
     {
         Enova.Business.Old.Core.IPrintable p = (Enova.Business.Old.Core.IPrintable)DataSourceBinding.Current;
         new AbakTools.Printer.ReportForm(p.ReportTitle, p.ReportPath, p.ReportDataSources).Show();
     }
 }