private void btnBackTwo_Click(object sender, EventArgs e) { frm_PlanUpload frm_PlanUpload = (frm_PlanUpload)this.Owner; //把Form2的父窗口指針賦給lForm1 frm_PlanUpload.gameKindValue = "BackTwo"; //使用父窗口指針賦值 this.Close(); }
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 }