private void btnNewLocation_Click(object sender, EventArgs e)
 {
     GroupLocationMaint newLocation = new GroupLocationMaint();
     if (newLocation.ShowDialog() == DialogResult.OK)
     {
         cmbPickupLocation.Items.Add(newLocation.FilterName);
         cmbPickupLocation.SelectedItem = newLocation.FilterName;
     }
 }
 private void btnModifyLocation_Click(object sender, EventArgs e)
 {
     if (GroupLocations.NameExists(cmbLocation.Text))
     {
         GroupLocationMaint maintLocation = new GroupLocationMaint(cmbLocation.Text);
     }
     else
     {
         MessageBox.Show("The currently entered location filter name does not exist in the database.",
             "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnModifyLocation_Click(object sender, EventArgs e)
 {
     if (GroupLocations.NameExists(cmbPickupLocation.Text))
     {
         GroupLocationMaint maintLocation = new GroupLocationMaint(cmbPickupLocation.Text);
         maintLocation.ShowDialog();
     }
     else
     {
         MessageBox.Show("The currently entered pickup location name does not exist in the database." +
             " It must be created.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void locationsGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         GroupLocationMaint maint = new GroupLocationMaint(
             locationsGrid["NameColumn", e.RowIndex].Value.ToString());
         maint.ShowDialog();
         ReloadData();
     }
 }
 private void btnNew_Click(object sender, EventArgs e)
 {
     GroupLocationMaint maint = new GroupLocationMaint();
     maint.ShowDialog();
     ReloadData();
 }