Beispiel #1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            Guid   levelId  = Guid.Parse(cboLevel.SelectedValue.ToString());
            string teamName = txtTeamName.Text.Trim();

            Team team = new Team
            {
                TeamName = teamName,
                LevelId  = levelId
            };

            blTeam.Insert(team);
            this.Close();
        }