private void uxBackButton_Click(object sender, EventArgs e) { Hide(); var races = new uxRaces(); races.Closed += (s, args) => Close(); races.Show(); }
private void uxSaveRaceButton_Click(object sender, EventArgs e) { raceController.CreateRace(locationController.GetLocationIdFromName(uxLocationDropDown.SelectedItem.ToString()), DateTimeConverstion(uxDateTimePicker.Value.ToString(), uxTimeBox.Text), Convert.ToInt32(uxDistanceBox.Text)); Hide(); var races = new uxRaces(); races.Closed += (s, args) => Close(); races.Show(); }
private void uxTeamRacesButton_Click(object sender, EventArgs e) { Hide(); var races = new uxRaces(); //raceController.FetchRacesForTeam(((Runner)Program.currentUser).TeamId) races.Closed += (s, args) => Close(); races.Show(); }