示例#1
0
 public void ScheduleCategorySelectAll(DataGridView ScheduleList)
 {
     try
     {
         raceScheduleCategory = new DAL.RaceScheduleCategory();
         PopulateDataLayer();
         ScheduleList.DataSource = raceScheduleCategory.RaceScheduleCategorySelectAll().Tables[0];
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public DataTable ScheduleCategorySelectAll()
 {
     try
     {
         raceScheduleCategory = new DAL.RaceScheduleCategory();
         DataTable dataResult = new DataTable();
         PopulateDataLayer();
         dataResult = raceScheduleCategory.RaceScheduleCategorySelectAll().Tables[0];
         return(dataResult);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
 public Boolean Save()
 {
     try
     {
         Boolean status = false;
         raceScheduleCategory = new DAL.RaceScheduleCategory();
         PopulateDataLayer();
         raceScheduleCategory.Save();
         MessageBox.Show("Schedule Category Record Save!", "Record Save");
         status = true;
         return(status);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#4
0
 public Boolean ScheduleCategoryDelete()
 {
     try
     {
         Boolean status = false;
         raceScheduleCategory = new DAL.RaceScheduleCategory();
         PopulateDataLayer();
         raceScheduleCategory.RaceScheduleCategoryDelete();
         MessageBox.Show("Record Successfully Reset!", "Reset Record");
         status = true;
         return(status);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }