This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * Created by SharpDevelop.
3+ * User: Peter Forstmeier
4+ * Date: 07.08.2014
5+ * Time: 20:13
6+ *
7+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
8+ */
9+ using System ;
10+ using System . Collections . Generic ;
11+ using ICSharpCode . Reporting . BaseClasses ;
12+ using Xceed . Wpf . Toolkit ;
13+ using ICSharpCode . Reporting . Addin . ReportWizard . ViewModels ;
14+
15+ namespace ICSharpCode . Reporting . Addin . ReportWizard . Dialog
16+ {
17+ /// <summary>
18+ /// Interaction logic for PushDataReport.xaml
19+ /// </summary>
20+ public partial class PushDataReport : WizardPage , IHasContext
21+ {
22+ List < AbstractColumn > items ;
23+ PushModelContext context ;
24+
25+ public PushDataReport ( )
26+ {
27+ InitializeComponent ( ) ;
28+ items = new List < AbstractColumn > ( ) ;
29+ _DataGrid . ItemsSource = items ;
30+ this . context = new PushModelContext ( ) ;
31+ var data = new AbstractColumn ( "MyColumn" , typeof ( string ) ) ;
32+ items . Add ( data ) ;
33+ }
34+
35+
36+ void UpdateContext ( )
37+ {
38+ context . Items = ( List < AbstractColumn > ) _DataGrid . ItemsSource ;
39+ }
40+
41+
42+ #region IHasContext implementation
43+
44+ public IWizardContext Context {
45+ get {
46+ UpdateContext ( ) ;
47+ return context ;
48+ }
49+ }
50+
51+ public WizardPageType ReportPageType {
52+ get { return WizardPageType . PushModelPage ; }
53+ }
54+
55+ #endregion
56+ }
57+ }
You can’t perform that action at this time.
0 commit comments