Exemple #1
0
        private void addRideButton_Click(object sender, EventArgs e)
        {
            AddRideForm addForm = new AddRideForm();

            addForm.ShowDialog();
            AppCoordinator.ResetRideData();
            SetAllDataSources();
        }
Exemple #2
0
        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();
        }