/// <summary> /// 检查相关信息并且打开数据操作页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { //test isOk_referee = true; isOk_team1 = true; isOk_team2 = true; if (!isOk_team1) { MessageBox.Show("主队信息有误,请检查!", "提示"); comboBox1.Focus(); return; } if (!isOk_team2) { MessageBox.Show("主队信息有误,请检查!", "提示"); comboBox2.Focus(); return; } if (!isOk_referee) { MessageBox.Show("主队信息有误,请检查!", "提示"); comboBox3.Focus(); return; } dataCollectForm newOpt = new dataCollectForm(this.home, this.last, this); this.Hide(); newOpt.Show(); }
/// <summary> /// 构造函数初始化播放窗口在屏幕中的位置 /// </summary> public gamePlay(dataCollectForm home) { InitializeComponent(); int x = Screen.PrimaryScreen.WorkingArea.Left; int y = 200; this.Location = new Point(x, y); this.data = home; }