public SelectDesignTimeDataSourceForm(IDesignDataContext context, XtraReport report, IEventAggregator aggregator, IDataSourceTraverser traverser)
        {
            InitializeComponent();

            _context = context;
            _report = report;
            _aggregator = aggregator;
            _traverser = traverser;

            iReportDatasourceMetadataBindingSource.DataSource = _context.DesignDataRepository.GetAvailableMetadatas().ToList();
            //this.gridControl1.DataSource = bindingSource1.DataSource;
        }
 public void GivenTheDesignRuntimeIsReady()
 {
     _eventAggregator = new EventAggregator();
     _dataContext = Factory.CreateForDogTime(out _setter);
     _messageHandler = new ActionMessageHandler(_setter, _eventAggregator, _dataContext.DesignDataDefinitionRepository, new ReportControllerFactory());
 }
        private static void PromptSelectDatasource(XRDesignForm form, XtraReport report, IDesignDataContext dataContext)
        {
            Form dialog = null;


            // Create Select Datasource Dialog
            dialog = new SelectDesignTimeDataSourceForm(dataContext, report, DefaultEventAggregator, new ObjectGraphPathTraverser());
            dialog.BringToFront();
            dialog.ShowDialog();
        }