private void addRideButton_Click(object sender, EventArgs e) { AddRideForm addForm = new AddRideForm(); addForm.ShowDialog(); AppCoordinator.ResetRideData(); SetAllDataSources(); }
private void editItemButton_Click(object sender, EventArgs e) { FilteredRide ride = this.ridesGrid.SelectedRows[0].DataBoundItem as FilteredRide; if (ride == null) { return; } AddRideForm addForm = new AddRideForm(ride); addForm.ShowDialog(); AppCoordinator.ResetRideData(); SetAllDataSources(); }