diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/PushDataReport.xaml.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/PushDataReport.xaml.cs new file mode 100644 index 0000000000..d08ce70bd8 --- /dev/null +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/PushDataReport.xaml.cs @@ -0,0 +1,57 @@ +/* + * Created by SharpDevelop. + * User: Peter Forstmeier + * Date: 07.08.2014 + * Time: 20:13 + * + * To change this template use Tools | Options | Coding | Edit Standard Headers. + */ +using System; +using System.Collections.Generic; +using ICSharpCode.Reporting.BaseClasses; +using Xceed.Wpf.Toolkit; +using ICSharpCode.Reporting.Addin.ReportWizard.ViewModels; + +namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog +{ + /// + /// Interaction logic for PushDataReport.xaml + /// + public partial class PushDataReport : WizardPage,IHasContext + { + List items; + PushModelContext context; + + public PushDataReport() + { + InitializeComponent(); + items = new List(); + _DataGrid.ItemsSource = items; + this.context = new PushModelContext(); + var data = new AbstractColumn("MyColumn",typeof(string)); + items.Add(data); + } + + + void UpdateContext() + { + context.Items = (List)_DataGrid.ItemsSource; + } + + + #region IHasContext implementation + + public IWizardContext Context { + get { + UpdateContext(); + return context; + } + } + + public WizardPageType ReportPageType { + get {return WizardPageType.PushModelPage;} + } + + #endregion + } +} \ No newline at end of file