private void uxCancelButton_Click(object sender, EventArgs e) { Hide(); var races = new RaceDetails(); races.Closed += (s, args) => Close(); races.Show(); }
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(); }