private void uxFilterButton_Click(object sender, EventArgs e) { IRaceParticipantRepository raceParticipantController = new SqlRaceParticipantRepository(Program.connectionString); int raceId = Convert.ToInt32(uxRaceIdBox.Text); var raceParticipants = raceParticipantController.TeamPlacingForRace(raceId); FillData(raceParticipants); }
private void uxSaveButton_Click(object sender, EventArgs e) { IRaceParticipantRepository raceParticipantController = new SqlRaceParticipantRepository(Program.connectionString); raceParticipantController.UpdateRaceParticipantTime(Convert.ToInt32(uxRaceParticipantIdBox.Text), Convert.ToInt32(uxTimeBox.Text)); Hide(); var races = new RaceDetails(); races.Closed += (s, args) => Close(); races.Show(); }