コード例 #1
0
 private void SaveCategory()
 {
     try
     {
         raceScheduleCategory = new BIZ.RaceScheduleCategory();
         GetControlValue();
         PopulateBusinessLayer(Common.Common.RaceResult.RaceScheduleCategory);
         if (raceScheduleCategory.Save())
         {
             ClearControl();
             ScheduleCategorySelectAll();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }
コード例 #2
0
 private void Save()
 {
     try
     {
         scheduleCategory = new BIZ.RaceScheduleCategory();
         GetControlValue();
         PopulateBussinessLayer();
         if (scheduleCategory.Save())
         {
             ClearControl();
             this.txtScheduleCategoryName.Focus();
             ScheduleCategorySelectAll();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }