Ejemplo n.º 1
0
        //按下彩票種類
        private void btnGame_Click(object sender, EventArgs e)
        {
            if (HD_GameSelect.Text == ((Label)(sender)).Text)
            {
                return;
            }

            switch (((Label)(sender)).Text)
            {
            case "重庆时时彩":
                ResetAllGame();     //重設彩票
                lblGame1_1.BackColor = Color.Black;
                lblGame1_1.ForeColor = Color.White;
                lblGame1_1.Refresh();
                HD_GameSelect.Text            = ((Label)(sender)).Text;
                frm_PlanCycle.GameLotteryName = ((Label)(sender)).Text;
                break;

            case "天津时时彩":
                ResetAllGame();     //重設彩票
                lblGame1_7.BackColor = Color.Black;
                lblGame1_7.ForeColor = Color.White;
                lblGame1_7.Refresh();
                HD_GameSelect.Text            = ((Label)(sender)).Text;
                frm_PlanCycle.GameLotteryName = ((Label)(sender)).Text;
                break;

            case "腾讯官方彩":
                ResetAllGame();     //重設彩票
                lblGame1_2.BackColor = Color.Black;
                lblGame1_2.ForeColor = Color.White;
                lblGame1_2.Refresh();
                HD_GameSelect.Text            = ((Label)(sender)).Text;
                frm_PlanCycle.GameLotteryName = ((Label)(sender)).Text;
                break;

            case "腾讯奇趣彩":
                ResetAllGame();     //重設彩票
                lblGame1_3.BackColor = Color.Black;
                lblGame1_3.ForeColor = Color.White;
                lblGame1_3.Refresh();
                HD_GameSelect.Text            = ((Label)(sender)).Text;
                frm_PlanCycle.GameLotteryName = ((Label)(sender)).Text;
                break;

            default:
                MessageBox.Show(((Label)(sender)).Text + " 尚未開放");
                break;
            }
            useHttpWebRequest_GetNextPeriod();
            useHttpWebRequest_GetHistory();
            //重新放置新的物件
            frm_PlanCycle f_PlanCycle = new frm_PlanCycle();

            pnlMenuPlanCycle.Controls.Clear();
            f_PlanCycle.TopLevel = false;
            f_PlanCycle.Size     = this.Size;
            this.pnlMenuPlanCycle.Controls.Add(f_PlanCycle);
            f_PlanCycle.Show();
        }
Ejemplo n.º 2
0
        private void frmGameMain_Load(object sender, EventArgs e)
        {
            //確認是否已經過了維護時間
            int NowDate = Int32.Parse(DateTime.Now.ToString("u").Replace("Z", "").Replace(":", "").Substring(10, 5));

            if (NowDate < 10 || NowDate > 2355)
            {
                MessageBox.Show("目前维护中请于12:10分后使用");
                this.Dispose();
            }

            frm_PlanCycle f_PlanCycle = new frm_PlanCycle();

            f_PlanCycle.TopLevel = false;
            f_PlanCycle.Size     = this.Size;
            this.pnlMenuPlanCycle.Controls.Add(f_PlanCycle);
            f_PlanCycle.Show();

            frm_PlanAgent f_PlanAgent = new frm_PlanAgent();

            f_PlanAgent.TopLevel = false;
            f_PlanAgent.Size     = this.Size;
            this.pnlMenuPlanAgent.Controls.Add(f_PlanAgent);
            f_PlanAgent.Show();

            frm_PlanUpload f_PlanUpload = new frm_PlanUpload();

            f_PlanUpload.TopLevel = false;
            f_PlanUpload.Size     = this.Size;
            this.pnlMenuPlanUpload.Controls.Add(f_PlanUpload);
            f_PlanUpload.Show();

            frm_Shrink f_Shrink = new frm_Shrink();

            f_Shrink.TopLevel = false;
            f_Shrink.Size     = this.Size;
            this.pnlMenuShrink.Controls.Add(f_Shrink);
            f_Shrink.Show();

            frm_Chart f_Chart = new frm_Chart();

            f_Chart.TopLevel = false;
            f_Chart.Size     = this.Size;
            this.pnlMenuChart.Controls.Add(f_Chart);
            f_Chart.Show();
            #region 進入時預設停在哪一分頁 哪一彩種
            HD_MenuSelect.Text         = "神灯周期计划";
            lblMenuPlanCycle.BackColor = Color.White;
            lblMenuPlanCycle.Refresh();
            pnlMenuPlanAgent.Visible  = false;
            pnlMenuPlanUpload.Visible = false;
            pnlMenuShrink.Visible     = false;
            pnlMenuChart.Visible      = false;
            HD_GameSelect.Text        = "重庆时时彩";
            #endregion
        }