x86.frmMain.selectVipCard C# (CSharp) Method

selectVipCard() private method

private selectVipCard ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void selectVipCard(object sender, EventArgs e)
        {
            foreach (Control c in this.groupBox14.Controls)
            {

                if (c is RadioButton)
                {
                    if (((RadioButton)c).Checked == true)
                    {
                        switch (((RadioButton)c).TabIndex)
                        {
                            case 0:
                                pictureBox1.Image = global::x86.Properties.Resources.car51;
                                if (sys.LoginUser.hyDj > 0)
                                {
                                    richTextBox2.Text = "你的购买价格: 300 元/张 内含:100000流量币";
                                    label57.Text = "300";
                                }
                                else
                                {
                                    richTextBox2.Text = "超值特惠卡500元,内含:100000流量币";
                                    label57.Text = "500";
                                }
                                break;
                            case 1:
                                pictureBox1.Image = global::x86.Properties.Resources.car41;
                                if (sys.LoginUser.hyDj > 0)
                                {
                                    richTextBox2.Text = "你的购买价格: 160 元/张 内含:50000流量币";
                                    label57.Text = "160";
                                }
                                else
                                {
                                    richTextBox2.Text = "超值特惠卡250元,内含:50000流量币";
                                    label57.Text = "250";
                                }
                                break;
                            case 2:
                                pictureBox1.Image = global::x86.Properties.Resources.car31;
                                if (sys.LoginUser.hyDj > 0)
                                {
                                    label57.Text = "68";
                                    richTextBox2.Text = "你的购买价格: 68 元/张 内含:20000流量币";
                                }
                                else
                                {
                                    label57.Text = "100";
                                    richTextBox2.Text = "超值特惠卡100元,内含:20000流量币";
                                }
                                break;
                            case 3:
                                pictureBox1.Image = global::x86.Properties.Resources.car21;
                                if (sys.LoginUser.hyDj > 0)
                                {
                                    label57.Text = "35";
                                    richTextBox2.Text = "你的购买价格: 35 元/张 内含:10000流量币";
                                }
                                else
                                {
                                    label57.Text = "50";
                                    richTextBox2.Text = "超值特惠卡50元,内含:10000流量币";
                                }
                                break;
                            case 4:
                                pictureBox1.Image = global::x86.Properties.Resources.car11;
                                if (sys.LoginUser.hyDj > 0)
                                {
                                    label57.Text = "18";
                                    richTextBox2.Text = "你的购买价格: 18 元/张 内含:5000流量币";
                                }
                                else
                                {
                                    label57.Text = "25";
                                    richTextBox2.Text = "超值特惠卡25元,内含:5000流量币";
                                }
                                break;
                            case 5:
                                pictureBox1.Image = global::x86.Properties.Resources.car01;
                                if (sys.LoginUser.hyDj > 0)
                                {
                                    label57.Text = "8";
                                    richTextBox2.Text = "你的购买价格: 8 元/张 内含:2000流量币";
                                }
                                else
                                {
                                    label57.Text = "10";
                                    richTextBox2.Text = "超值特惠卡10元,内含:2000流量币";
                                }
                                break;
                        }

                    }
                }
            }
        }
frmMain