示例#1
0
        private List <DashboardReportItemSetup> GetLatestDrawResultsPerLotteryGame()
        {
            List <DashboardReportItemSetup> itemsList         = new List <DashboardReportItemSetup>();
            List <LotteryDrawResult>        latestDrawResults = LotteryDataServices.GetLatestDrawResults();
            List <Lottery> lotteriesGameList = LotteryDataServices.GetLotteries();

            foreach (LotteryDrawResult draw in latestDrawResults)
            {
                if (draw == null)
                {
                    continue;
                }
                Lottery  lottery       = lotteriesGameList.Find((lotteryObj) => (int)lotteryObj.GetGameMode() == draw.GetGameCode());
                DateTime today         = DateTime.Now;
                TimeSpan diffWithToday = today - draw.GetDrawDate();
                String   key           = lottery.GetDescription();
                String   value         = ResourcesUtils.GetMessage("drpt_lot_draw_value",
                                                                   DateTimeConverterUtils.ConvertToFormat(draw.GetDrawDate(),
                                                                                                          DateTimeConverterUtils.STANDARD_DATE_FORMAT_WITH_DAYOFWEEK),
                                                                   ((int)diffWithToday.TotalDays).ToString());
                DashboardReportItemSetup itm = GenModel(key, value);
                itm.GroupKeyName = ResourcesUtils.GetMessage("drpt_lot_draw_group_lbl");
                itm.ReportItemDecoration.IsHyperLink = true;
                itm.DashboardReportItemAction        = DashboardReportItemActions.OPEN_LOTTERY_GAME;
                itm.Tag = lottery.GetGameMode();
                itemsList.Add(itm);
            }
            return(itemsList);
        }
示例#2
0
        private List <DashboardReportItemSetup> GetLatestDrawResultsJackpotPerLotteryGame()
        {
            List <DashboardReportItemSetup> itemsList         = new List <DashboardReportItemSetup>();
            List <LotteryDrawResult>        latestDrawResults = LotteryDataServices.GetLatestDrawResults();
            List <Lottery> lotteriesGameList = LotteryDataServices.GetLotteries();

            foreach (LotteryDrawResult draw in latestDrawResults)
            {
                if (draw == null)
                {
                    continue;
                }
                Lottery lottery    = lotteriesGameList.Find((lotteryObj) => (int)lotteryObj.GetGameMode() == draw.GetGameCode());
                String  valueLabel = "drpt_lot_draw_jackpot_winners_lbl";
                if (draw.GetWinnersCount() > 1)
                {
                    valueLabel += "_plural";
                }

                String key   = lottery.GetDescription();
                String value = (draw.HasWinners()) ?
                               ResourcesUtils.GetMessage(valueLabel,
                                                         draw.GetJackpotAmtFormatted(), draw.GetWinnersCount().ToString()) :
                               draw.GetJackpotAmtFormatted();
                DashboardReportItemSetup itm = GenModel(key, value);
                itm.GroupKeyName = ResourcesUtils.GetMessage("drpt_lot_draw_jackpot_lbl");
                itm.ReportItemDecoration.IsHyperLink = true;
                itm.DashboardReportItemAction        = DashboardReportItemActions.OPEN_LOTTERY_GAME;
                itm.Tag = lottery.GetGameMode();
                itemsList.Add(itm);
            }
            return(itemsList);
        }
示例#3
0
        private List <DashboardReportItemSetup> GetLotteryBetsInQueue()
        {
            List <DashboardReportItemSetup> itemsList = new List <DashboardReportItemSetup>();
            LotteryDetails lotteryDetails             = LotteryDataServices.LotteryDetails;

            foreach (Lottery lottery in LotteryDataServices.GetLotteries())
            {
                if (lotteryDetails.GameMode != lottery.GetGameMode())
                {
                    List <LotteryBet> lotteryBetList = LotteryDataServices.GetLotterybetsQueued(lottery.GetGameMode());
                    if (lotteryBetList.Count <= 0)
                    {
                        continue;
                    }
                    foreach (LotteryBet bet in lotteryBetList)
                    {
                        String key   = DateTimeConverterUtils.ConvertToFormat(bet.GetTargetDrawDate(), DateTimeConverterUtils.STANDARD_DATE_FORMAT_WITH_DAYOFWEEK);
                        String value = bet.GetGNUFormat();
                        DashboardReportItemSetup dshSetup = GenModel(key, value);
                        dshSetup.DashboardReportItemAction = DashboardReportItemActions.OPEN_LOTTERY_GAME;
                        dshSetup.Tag            = lottery.GetGameMode();
                        dshSetup.GroupTaskLabel = ResourcesUtils.GetMessage("drpt_lot_bet_group_lbl_task");
                        dshSetup.GroupKeyName   = ResourcesUtils.GetMessage("drpt_lot_bet_group_lbl", lottery.GetDescription(), lotteryBetList.Count.ToString());
                        dshSetup.ReportItemDecoration.IsHyperLink = true;
                        itemsList.Add(dshSetup);
                    }
                }
            }
            return(itemsList);
        }
示例#4
0
        private List <DashboardReportItemSetup> GetLotteriesNextBetDrawDate()
        {
            List <DashboardReportItemSetup> itemsList         = new List <DashboardReportItemSetup>();
            List <LotteryDrawResult>        latestDrawResults = LotteryDataServices.GetLatestDrawResults();
            List <Lottery> lotteriesGameList = LotteryDataServices.GetLotteries();

            foreach (Lottery lottery in lotteriesGameList)
            {
                if (lottery == null)
                {
                    continue;
                }
                LotteryDataServices lotteryDataServicesTMP = new LotteryDataServices(new LotteryDetails(lottery.GetGameMode()));
                String   valueLabel   = "drpt_lot_next_drawdate_per_lottery_value";
                DateTime nextDrawDate = lotteryDataServicesTMP.GetNextDrawDate();
                if (nextDrawDate.Date.CompareTo(DateTime.Now.Date) == 0)
                {
                    valueLabel += "_today";
                }

                String key   = lottery.GetDescription();
                String value = ResourcesUtils.GetMessage(valueLabel,
                                                         DateTimeConverterUtils.ConvertToFormat(nextDrawDate,
                                                                                                DateTimeConverterUtils.STANDARD_DATE_FORMAT_WITH_DAYOFWEEK));

                DashboardReportItemSetup itm = GenModel(key, value);
                itm.GroupKeyName = ResourcesUtils.GetMessage("drpt_lot_next_drawdate_per_lottery_lbl");
                itm.ReportItemDecoration.IsHyperLink = true;
                itm.DashboardReportItemAction        = DashboardReportItemActions.OPEN_LOTTERY_GAME;
                itm.Tag = lottery.GetGameMode();
                itemsList.Add(itm);
            }
            return(itemsList);
        }
 private void ReinitateLotteryServices()
 {
     processingLogStatusCtr   = 0;
     this.lotteryDataServices = new LotteryDataServices(this.lotteryDetails);
     this.lotteryDataWorker   = new LotteryDataWorker();
     this.dashboardReport     = new DashboardReport(this.lotteryDataServices);
     this.dashboardReport.DashboardReportingEvents += DashboardReport_DashboardReportingEvents;
 }
 public ProfitAndLossFrm(LotteryDataServices lotteryDataServices)
 {
     InitializeComponent();
     this.lotteryDataServices = lotteryDataServices;
     //Debugging
     //if(lotteryDataServices==null) this.lotteryDataServices = new LotteryDataServices(new Game642());
     //End Debugging
 }
示例#7
0
 public ModifyBetFrm(LotteryDataServices lotteryDataServices)
 {
     InitializeComponent();
     this.lotteryDataServices          = lotteryDataServices;
     this.lotteryTicketPanel           = this.lotteryDataServices.GetLotteryTicketPanel();
     this.lotteryOutletList            = this.lotteryDataServices.GetLotteryOutlets();
     this.lotterySequenceGeneratorList = this.lotteryDataServices.GetAllSequenceGenerators();
     InitializesForms();
 }
示例#8
0
 public DrawAndBetMatchFrm(LotteryDataServices lotteryDataServices, DateTime betDateTime, long betIdDefault = 0)
 {
     InitializeComponent();
     this.betDateTime         = betDateTime;
     this.lotteryDataServices = lotteryDataServices;
     this.betIdDefault        = betIdDefault;
     this.lotteryTicketPanel  = this.lotteryDataServices.GetLotteryTicketPanel();
     SetupForms();
     InitialzesContents();
 }
 public RandomNumbersFromJackpotsDigitsGenerator(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.RANDOM_NUMBERS_USING_JACKPOTS_WINNING_DIGITS;
     this.Description = ResourcesUtils.GetMessage("pick_class_random_from_jackpot_numbers_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_random_from_jackpot_numbers_count")
     });
 }
 public LuckyPickGenerator(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.LUCKY_PICK;
     this.Description = ResourcesUtils.GetMessage("pick_class_luckypick_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_luckypick_count")
     });
 }
 public RandomPickTotalSumBetweenGenerators1n31(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.RANDOM_PICK_A_SEQ_104_176_2;
     this.Description = ResourcesUtils.GetMessage("pick_class_random_sum2_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_random_sum2_count")
     });
 }
示例#12
0
 public ModifyBetDateFrm(LotteryDataServices lotteryDataServices)
 {
     InitializeComponent();
     this.lotteryDataServices     = lotteryDataServices;
     this.lotteryTicketPanel      = this.lotteryDataServices.GetLotteryTicketPanel();
     this.lotteryOutletArr        = this.lotteryDataServices.GetLotteryOutlets();
     this.lotterySchedule         = this.lotteryDataServices.GetLotterySchedule();
     this.autoSelectBetList       = new List <long>();
     this.autoSelectBetLowestDate = DateTime.Now;
     InitializesFormLabels();
     InitializesListViewColumns();
 }
示例#13
0
        public MachineLearningFrm(LotteryDataServices lotteryDataServices)
        {
            InitializeComponent();

            this.lotteryDataServices          = lotteryDataServices;
            this.trainerProcessorAbstractList = new List <TrainerProcessorAbstract>();
            trainerProcessorAbstractList.Add(new FastTreeTrainerDataIntake(this.lotteryDataServices));
            trainerProcessorAbstractList.Add(new SDCARegressionTrainerDataIntake(this.lotteryDataServices));
            trainerProcessorAbstractList.Add(new LottoMatchCountTrainerDataIntake(this.lotteryDataServices));
            trainerProcessorAbstractList.Add(new DrawResultWinCountDataIntake(this.lotteryDataServices));
            log(ResourcesUtils.GetMessage("mac_lrn_log_13"));
        }
示例#14
0
 public RandomPredictionSDCARegression(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.RANDOM_PREDICTION_SDCA_REGRESSION;
     this.Description = ResourcesUtils.GetMessage("pick_class_random_prediction_sdca_reg_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_random_prediction_sdca_reg_count"),
         MaxCountValue      = 999
     });
 }
        public ModifyClaimsFrm(LotteryDataServices lotteryDataServices)
        {
            InitializeComponent();
            this.lotteryDataServices = lotteryDataServices;

            //Debugging
            //if(lotteryDataServices==null)
            //    this.lotteryDataServices = new LotteryDataServices(new Game658());
            //end debugging

            this.lotteryTicketPanel = this.lotteryDataServices.GetLotteryTicketPanel();
            InitializesForms();
        }
示例#16
0
 public void StartUpdate(LotteryDataServices lotteryDataServices)
 {
     this.LotteryDataServicesObj = lotteryDataServices;
     IsUpdateFinish = false;
     Task.Run(() =>
     {
         //updates should be in sequence. If not, might be mess up
         RaiseEvent(ResourcesUtils.GetMessage("app_ver_notify_0"));
         UpdateFor1006();
         UpdateFor1008();
         RaiseEvent(ResourcesUtils.GetMessage("app_ver_notify_2"));
         IsUpdateFinish = true;
     });
 }
 public AddBetFrm(LotteryDataServices lotteryDataServices)
 {
     InitializeComponent();
     this.lotteryDataServices = lotteryDataServices;
     this.lotteryTicketPanel  = this.lotteryDataServices.GetLotteryTicketPanel();
     this.lotteryOutletArr    = this.lotteryDataServices.GetLotteryOutlets();
     this.lotterySchedule     = this.lotteryDataServices.GetLotterySchedule();
     this.lotterySeqGenArr    = this.lotteryDataServices.GetAllSequenceGenerators();
     SetupForm();
     //need to place it here so that other form calling this form may preset the combo box before showing the form
     cmbOutlet.Items.AddRange(lotteryOutletArr.ToArray());
     cmbSeqGenType.Items.AddRange(lotterySeqGenArr.ToArray());
     GenerateTicketPanelNumbers();
 }
示例#18
0
        public LotterySettingsFrm(LotteryDataServices lotteryDataServices)
        {
            InitializeComponent();

            if (lotteryDataServices != null)
            {
                this.lotteryDataServices = lotteryDataServices;
                this.lotteryTicketPanel  = this.lotteryDataServices.GetLotteryTicketPanel();
            }
            this.lotteryAppConfiguration = LotteryAppConfiguration.GetInstance();
            txtConfigDBSource.Text       = this.lotteryAppConfiguration.DBSourcePath;
            txtConfigFolderML.Text       = this.lotteryAppConfiguration.MLModelPath;
            txtConfigNotes.Text          = String.Format(ResourcesUtils.GetMessage("lott_app_config_notes"),
                                                         Environment.NewLine + Environment.NewLine, Environment.NewLine + Environment.NewLine,
                                                         Environment.NewLine + Environment.NewLine, Environment.NewLine + Environment.NewLine);
        }
示例#19
0
 private void InitializesAllValues(LotteryDataServices lotteryDataServices)
 {
     base.LotteryDataServices = lotteryDataServices;
     SetupReportTitle();
     SetupLifeTimeWinnings();
     GetTotalMoneyYouWinAndLooseSoFar();
     GetMinMaxAmountOfMoneyWon();
     GetTotalMoneySpentSoFar();
     GetTotalMoneyBettedYearlyAverage();
     GetTotalClaimsCount();
     GetAllClaimDetails();
     GetTotalBetsMade();
     TimeSinceTheFirstTimeYouBet();
     GetNumberOfTimesWonPerBetCombination();
     GetWhenWasLastTimeYouWon();
 }
 public TopDrawNumbersFromDateRange(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.TOP_DRAW_NUMBERS_USING_DATE_RANGE;
     this.Description = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.FROMDATE,
         Description        = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_date_from")
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.TODATE,
         Description        = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_date_to")
     });
 }
 public DrawResultWinCountFastTreeTweedieRandomGenerator(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.DRAW_RESULT_WIN_COUNT_PREDICTION_FAST_TREE_REGRESSION;
     this.Description = ResourcesUtils.GetMessage("pick_class_draw_result_win_count_match_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_draw_result_win_count_match_lp_count"),
         MaxCountValue      = 99
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = @ResourcesUtils.GetMessage("pick_class_draw_result_win_count_match_perc"),
         MaxCountValue      = 100
     });
 }
 public RandomPredictionDrawResults(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.RANDOM_PREDICTION_DRAW_RESULT;
     this.Description = ResourcesUtils.GetMessage("pick_class_random_prediction_dr_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_random_prediction_fasttree_count"),
         MaxCountValue      = 9999
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = @ResourcesUtils.GetMessage("pick_class_random_prediction_dr_coefficient"),
         MaxCountValue      = 20
     });
 }
 public LottoCountMatchPredictionFastTreeRegression(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.LOTTO_MATCH_COUNT_PREDICTION_FAST_TREE_REGRESSION;
     this.Description = ResourcesUtils.GetMessage("pick_class_lotto_count_match_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_lotto_count_match_lp_count"),
         MaxCountValue      = 99
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = @ResourcesUtils.GetMessage("pick_class_lotto_count_match_perc"),
         MaxCountValue      = 100
     });
 }
示例#24
0
        private List <DashboardReportItemSetup> GetLotteryBetsCurrentMonth()
        {
            DateTime today = DateTime.Now;
            List <DashboardReportItemSetup> itemsList = new List <DashboardReportItemSetup>();
            LotteryDetails    lotteryDetails          = LotteryDataServices.LotteryDetails;
            List <LotteryBet> lotteryBetList          = LotteryDataServices.GetLotteryBetsByMonthy(lotteryDetails.GameMode, today.Year, today.Month);
            List <DateTime[]> weeklyRangeList         = DateTimeConverterUtils.GetWeeklyDateRange(today.Year, today.Month);

            int weekNumber = 1;

            foreach (DateTime[] weekRange in weeklyRangeList)
            {
                DateTime startDate = weekRange[0].AddDays(-1);//initially -1 to solve iteration problem below
                DateTime endDate   = weekRange[1];

                double sumAmount = 0;
                do
                {
                    startDate = startDate.AddDays(1);
                    foreach (LotteryBet bet in lotteryBetList)
                    {
                        if (bet.GetTargetDrawDate().Day == startDate.Day)
                        {
                            sumAmount += bet.GetBetAmount();
                        }
                    }
                } while (startDate.Day != endDate.Day);

                String key = ResourcesUtils.GetMessage("drpt_lot_bet_current_month_desc", weekNumber++.ToString(),
                                                       weekRange[0].ToString("MMM"), weekRange[0].ToString("dd"), weekRange[1].ToString("dd"));
                String value = sumAmount.ToString("C");
                DashboardReportItemSetup dshSetup = GenModel(key, value);
                dshSetup.GroupKeyName = ResourcesUtils.GetMessage("drpt_lot_bet_current_month_group_lbl",
                                                                  today.Year.ToString(), today.ToString("MMM"));
                if (sumAmount <= 0.00)
                {
                    dshSetup.ReportItemDecoration.FontColor = ReportItemDecoration.COLOR_NO_FOCUS;
                }

                itemsList.Add(dshSetup);
            }

            return(itemsList);
        }
 public HistoricalFrequencyRandomGenerator(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.HISTORICAL_FREQ_RANDOM;
     this.Description = ResourcesUtils.GetMessage("pick_class_historic_freq_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.COUNT,
         Description        = ResourcesUtils.GetMessage("pick_class_historic_freq_count")
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.FROMDATE,
         Description        = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_date_from")
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.TODATE,
         Description        = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_date_to")
     });
 }
 public RandomPatternSequenceGenerator(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.RANDOM_PATTERN_SEQUENCE;
     this.Description = ResourcesUtils.GetMessage("pick_class_top_pattern_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.PATTERN,
         Description        = ResourcesUtils.GetMessage("pick_class_top_pattern_box_desc")
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.FROMDATE,
         Description        = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_date_from")
     });
     SequenceParams.Add(new SequenceGeneratorParams()
     {
         GeneratorParamType = GeneratorParamType.TODATE,
         Description        = ResourcesUtils.GetMessage("pick_class_top_draw_date_range_date_to")
     });
 }
示例#27
0
        private List <DashboardReportItemSetup> GetNextDrawDates()
        {
            List <DashboardReportItemSetup> itemsList = new List <DashboardReportItemSetup>();
            int             ctrDays              = 14;
            LotterySchedule lotterySchedule      = LotteryDataServices.GetLotterySchedule();
            DateTime        dateStartingTommorow = DateTime.Now.AddDays(1);
            int             idxLabel             = 1;

            for (int ctr = 1; ctr <= ctrDays; ctr++)
            {
                if (lotterySchedule.IsDrawDateMatchLotterySchedule(dateStartingTommorow))
                {
                    String key   = String.Format("{0} ({1})", ResourcesUtils.GetMessage("drpt_next_lottery_sched"), idxLabel++);
                    String value = DateTimeConverterUtils.ConvertToFormat(dateStartingTommorow, DateTimeConverterUtils.DATE_FORMAT_LONG);

                    DashboardReportItemSetup itm2 = GenModel(key, value);
                    itm2.GroupKeyName = ResourcesUtils.GetMessage("drpt_lottery_schedules");
                    itemsList.Add(itm2);
                }
                dateStartingTommorow = dateStartingTommorow.AddDays(1);
            }
            return(itemsList);
        }
示例#28
0
        private List <DashboardReportItemSetup> GetPreviousDrawDates()
        {
            List <DashboardReportItemSetup> itemsList = new List <DashboardReportItemSetup>();
            int             ctrDays         = 14;
            LotterySchedule lotterySchedule = LotteryDataServices.GetLotterySchedule();
            DateTime        dateLastXDays   = DateTime.Now.AddDays(-ctrDays);
            int             idxLabel        = 1;

            //for one week schedule only
            for (int ctr = 1; ctr <= ctrDays; ctr++)
            {
                if (lotterySchedule.IsDrawDateMatchLotterySchedule(dateLastXDays))
                {
                    String key   = String.Format("{0} ({1})", ResourcesUtils.GetMessage("drpt_prev_lottery_sched"), idxLabel++);
                    String value = DateTimeConverterUtils.ConvertToFormat(dateLastXDays, DateTimeConverterUtils.DATE_FORMAT_LONG);
                    DashboardReportItemSetup dshSetup = GenModel(key, value);
                    dshSetup.ReportItemDecoration.FontColor = ReportItemDecoration.COLOR_NO_FOCUS;
                    dshSetup.GroupKeyName = ResourcesUtils.GetMessage("drpt_lottery_schedules");
                    itemsList.Add(dshSetup);
                }
                dateLastXDays = dateLastXDays.AddDays(1);
            }
            return(itemsList);
        }
 protected AbstractSequenceGenerator(LotteryDataServices lotteryDataServices) : base()
 {
     this.lotteryDataServices = lotteryDataServices;
     this.lotteryTicketPanel  = this.lotteryDataServices.GetLotteryTicketPanel();
 }
 public NumberNotYetPickUpGenerator(LotteryDataServices lotteryDataServices) : base(lotteryDataServices)
 {
     SeqGeneratorType = GeneratorType.NUMBER_NOT_YET_PICK_UP_GENERATOR;
     this.Description = ResourcesUtils.GetMessage("pick_class_numbers_not_yet_drawn_desc");
     SequenceParams   = new List <SequenceGeneratorParams>();
 }