コード例 #1
0
ファイル: PowerBall.cs プロジェクト: ronmelcuba10/lottoApp
 public PowerBall(string appPath) : base(appPath)
 {
     Name     = EnumLotteries.Powerball.ToString();
     FilePath = Path.Combine(appPath, FileName);
     ColumnSpecs.OverrideColumnName(ColumnHeader.SpecialNumber, "Power Ball");
     ColumnSpecs.OverrideColumnName(ColumnHeader.SpecialPlay, "Power Play");
     Url = "https://txlottery.org/export/sites/lottery/Games/Powerball/Winning_Numbers/powerball.csv";
     powerballPattern = new PatternSection[] {
         PatternSection.str, PatternSection.month, PatternSection.day, PatternSection.year,
         PatternSection.number, PatternSection.number, PatternSection.number, PatternSection.number,
         PatternSection.number, PatternSection.specialnumber, PatternSection.plays
     };
     UpdateIndexes(powerballPattern);
     NumberMax             = numberMax;
     SpecialNumberMax      = specialNumberMax;
     SpecialPlayIndex      = 10;
     HistoricNumMax        = historicNumMax;
     HistoricSpecialNumMax = historicSpecialNumMax;
 }
コード例 #2
0
ファイル: CashForLife.cs プロジェクト: ronmelcuba10/lottoApp
 public CashForLife(string appPath) : base(appPath)
 {
     Name     = EnumLotteries.Cash4Life.ToString();
     FilePath = Path.Combine(appPath, FileName);
     ColumnSpecs.OverrideColumnName(ColumnHeader.SpecialNumber, "Cash Ball");
     Url = "http://www.flalottery.com/exptkt/c4l.htm";
     cash4LifePattern = new PatternSection[] {
         PatternSection.str, PatternSection.month, PatternSection.day, PatternSection.year,
         PatternSection.number, PatternSection.number, PatternSection.number, PatternSection.number,
         PatternSection.number, PatternSection.specialnumber
     };
     UpdateIndexes(cash4LifePattern);
     NumberMax             = numberMax;
     SpecialNumberMax      = specialNumberMax;
     SpecialPlayIndex      = 7;
     HistoricNumMax        = historicNumMax;
     HistoricSpecialNumMax = historicSpecialNumMax;
     HiddenColumns         = new List <int>()
     {
         SpecialPlayIndex
     };
 }