Beispiel #1
0
        public static ReportLayoutCreator GetReportLayout(Model.Enums.EnumReports reportType)
        {
            if (!reports.ContainsKey(reportType))
            {
                return(null);
            }

            return(reports[reportType].Item1);
        }
Beispiel #2
0
        private static void Register <TLayout, TCreator>(Model.Enums.EnumReports reportType)
            where TLayout : ReportLayoutCreator, new() where TCreator : IReportCreator, new()
        {
            if (reports.ContainsKey(reportType))
            {
                return;
            }

            reports.Add(reportType, new Tuple <ReportLayoutCreator, IReportCreator>(new TLayout(), new TCreator()));
        }