private void button3_Click(object sender, EventArgs e) { if (!CheckCBChecked()) { MessageBox.Show("请选择队伍"); return; } TeamForm tf = new TeamForm(); tf.MyTeam = comboBox1.SelectedItem as Team; tf.Closed += OnTfOnClosed; tf.Show(); }
private void button4_Click(object sender, EventArgs e) { if (!CheckCBChecked()) { MessageBox.Show("请选择队伍"); return; } TeamForm tf = new TeamForm(); tf.Closed += OnTfOnClosed; tf.Show(); this.Enabled = false; }