Ejemplo n.º 1
0
 private void OnReportFormatChanged(ReportFormatChangedEventArgs args)
 {
     var handler = this.Events[EventReportFormatChanged] as EventHandler<ReportFormatChangedEventArgs>;
     if (handler != null)
     {
         handler(this, args);
     }
 }
Ejemplo n.º 2
0
        private void RefreshReportBarItemCaption()
        {
            bbiReport_Print.Caption = "打印 {0}".FormatWith(CurrReportFormat.Name);
            bbiReport.Caption = "预览 {0}".FormatWith(CurrReportFormat.Name);

            var args = new ReportFormatChangedEventArgs(CurrReportFormat.ReportId, CurrReportFormat.Name);
            OnReportFormatChanged(args);
        }