Пример #1
0
 private void btnEditTeam_Click(object sender, EventArgs e)
 {
     if (dgTeamData.SelectedRows.Count == 1)
     {
         string           uid  = dgTeamData.SelectedRows[0].Tag.ToString();
         AccessHelper     ah   = new AccessHelper();
         List <UDT.Teams> data = ah.Select <UDT.Teams>(" uid = " + uid);
         if (data.Count > 0)
         {
             UDT.Teams           updateTeam = data[0];
             frmRegRecordSetTeam frrs       = new frmRegRecordSetTeam();
             frrs.SetIsAddMode(false);
             frrs.SetUpdateTeam(updateTeam);
             frrs.SetEventItemName(cbxEventItem.Text);
             if (frrs.ShowDialog() == DialogResult.Yes)
             {
                 _bgSearch.RunWorkerAsync();
             }
         }
     }
 }
Пример #2
0
 public void SetUpdateTeam(UDT.Teams team)
 {
     _updateTeam = team;
 }