Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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();
        }