示例#1
0
文件: Form1.cs 项目: AtanasK/VP
 private void btnAddNewTeam_Click(object sender, EventArgs e)
 {
     AddTeamForm addTeamForm = new AddTeamForm();
     if (addTeamForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         lbTeams.Items.Add(addTeamForm.Team);
     }
 }
示例#2
0
        private void btnAddNewTeam_Click(object sender, EventArgs e)
        {
            AddTeamForm addTeamForm = new AddTeamForm();

            if (addTeamForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                lbTeams.Items.Add(addTeamForm.Team);
            }
        }