Exemple #1
0
        //进入抽奖
        private void btnstart_Click(object sender, EventArgs e)
        {
            if (rdo1.Checked == true)
            {
                LuckyForm luck1 = new LuckyForm();
                luck1.choose = 1;
                luck1.ShowDialog();
            }
            else if (rdo2.Checked == true)
            {
                LuckyForm luck2 = new LuckyForm();
                luck2.choose = 2;
                luck2.ShowDialog();
            }
            else if (rdo3.Checked == true)
            {
                LuckyForm luck3 = new LuckyForm();
                luck3.choose = 3;
                luck3.ShowDialog();
            }

            else if (rdo4.Checked == true)
            {
                LuckyForm luck4 = new LuckyForm();
                luck4.choose = 4;
                luck4.ShowDialog();
            }
            else if (rdo5.Checked == true)
            {
                LuckyForm luck5 = new LuckyForm();
                luck5.choose = 5;
                luck5.ShowDialog();
            }
            else if (rdot.Checked == true)
            {
                LuckyForm luck = new LuckyForm();
                luck.choose = 0;
                luck.ShowDialog();
            }
        }
Exemple #2
0
        //进入抽奖
        private void btnstart_Click(object sender, EventArgs e)
        {
            var luckForm = new LuckyForm();

            luckForm.ShowDialog();
        }