Example #1
0
        private void btnViewCompareHits_Click(object sender, EventArgs e)
        {
            if (objLvGenSeq.Objects == null)
            {
                return;
            }
            HitComparisonFrm  hitComparisonFrm = new HitComparisonFrm(this.lotteryDataServices);
            List <LotteryBet> arrBet           = new List <LotteryBet>();
            LotteryOutlet     outlet           = this.lotteryDataServices.GetDefaultLotteryOutlet();

            foreach (LotteryBetSetup item in objLvGenSeq.Objects)
            {
                SequenceGenerator             seqGentor = ((SequenceGenerator)objLvGenSeq.Tag);
                LotterySequenceGeneratorSetup seqGen    = new LotterySequenceGeneratorSetup();
                seqGen.ID           = seqGentor.GetSequenceGeneratorID();
                seqGen.Description  = seqGentor.GetDescription();
                item.LotterySeqGen  = seqGen;
                item.LotteryOutlet  = outlet;
                item.TargetDrawDate = DateTime.Now;
                arrBet.Add(item);
            }
            hitComparisonFrm.UserDefinedLotteryBets = arrBet;
            hitComparisonFrm.LotteryBetsCheckboxes  = true;
            hitComparisonFrm.ShowDialog(this);
            AutoCheckSelectedBetsFromHitComparisonForm(hitComparisonFrm.GetCheckedLotteryBets);
            hitComparisonFrm.Dispose();
        }
        private void ShowHitComparisonForm()
        {
            HitComparisonFrm hitFrm = new HitComparisonFrm(this.lotteryDataServices);

            hitFrm.ShowDialog();
        }