Exemplo n.º 1
0
        private void Btn_Create_Click(object sender, EventArgs e)
        {
            TeamController team  = new TeamController();
            Team           teamm = new Team()
            {
                TeamName    = txt_NameTeam.Text.Trim(),
                Color1      = color_1.BackColor.ToArgb().ToString(),
                Color2      = color_2.BackColor.ToArgb().ToString(),
                Point       = 0,
                SpanserName = txt_SpanserName.Text,
                LOGO        = txt_Url.Text.Trim(),
                LigID       = int.Parse(radMultiColumnComboBox1.Text.Trim())
            };

            if (team.Addteam(teamm))
            {
                RadMessageBox.Show("تیم با موفقیت ثبت شد ", "اعلان", MessageBoxButtons.OK, RadMessageIcon.Info);
                this.Close();
            }
        }