Example #1
0
        private void uxCancelButton_Click(object sender, EventArgs e)
        {
            Hide();
            var races = new RaceDetails();

            races.Closed += (s, args) => Close();
            races.Show();
        }
Example #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();
        }