Ejemplo n.º 1
0
        public ReportCollector(TopicReportReady topicReportReady,
                               ReportReady reportGenerated,
                               ReportParameters reportParams,
                               object param, DiscussionsClientRT.ClientRT clientRt)
        {
            _reportParams = reportParams;

            _param    = param;
            _clientRT = clientRt;

            _ctx = new DiscCtx(Discussions.ConfigManager.ConnStr);

            _topicReportReady = topicReportReady;

            _allTopicsReport = new TopicReport(null, 0, 0, 0, 0, 0, 0, null, null, 0, 0, 0, 0, 0, 0, 0);

            _reportGenerated = reportGenerated;

            setListeners(true);

            topics = new List <Topic>()
            {
                _reportParams.topic
            };

            prepareArgPointReports();

            prepareEvents();

            if (topics.Count() > 0)
            {
                _clientRT.dEditorReportResponse += dEditorReportResponse;
                _clientRT.SendDEditorRequest(topics.First().Id);
            }
            else
            {
                finalizeReport();
            }
        }
Ejemplo n.º 2
0
        public ReportCollector(TopicReportReady topicReportReady,
                               ReportReady reportGenerated,
                               ReportParameters reportParams,
                               object param, DiscussionsClientRT.ClientRT clientRt)
        {
            _reportParams = reportParams;

            _param = param;
            _clientRT = clientRt;

            _ctx = new DiscCtx(Discussions.ConfigManager.ConnStr);

            _topicReportReady = topicReportReady;

            _allTopicsReport = new TopicReport(null, 0, 0, 0, 0, 0, 0, null, null, 0, 0, 0, 0, 0, 0, 0);

            _reportGenerated = reportGenerated;

            setListeners(true);

            topics = new List<Topic>() {_reportParams.topic};

            prepareArgPointReports();

            prepareEvents();

            if (topics.Count() > 0)
            {
                _clientRT.dEditorReportResponse += dEditorReportResponse;
                _clientRT.SendDEditorRequest(topics.First().Id);
            }
            else
            {
                finalizeReport();
            }
        }