Beispiel #1
0
 private void LocationSelectAll()
 {
     try
     {
         location = new BIZ.Location();
         PopulateBussinessLayer(Common.Common.Location.Location);
         location.LocationSelectAll(this.dataGridView1);
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }
Beispiel #2
0
        private void PopulateCombobox()
        {
            try
            {
                DataTable dtLocation;
                location = new BIZ.Location();
                PopulateBussinessLayer(Common.Common.RaceScheduleDetails.Location);
                dtLocation = location.LocationSelectAll();

                foreach (DataRow dr in dtLocation.Rows)
                {
                    this.cmbLocation.Items.Add(dr["LocationName"].ToString());
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
            }
        }