예제 #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;
 }