Beispiel #1
0
 private void GetCategoryList()
 {
     try
     {
         raceCategoryGroup          = new BIZ.RaceCategoryGroup();
         raceCategoryGroup.ClubID   = ClubID;
         raceCategoryGroup.EntryID  = EntryID;
         raceCategoryGroup.MemberID = MemberID;
         raceCategoryGroup.RaceCategoryGroupName = this.cmbCategoryList.Text;
         SetCategoryList(raceCategoryGroup.GetEntryCategory());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 private void RaceCategoryGroupSelectAll()
 {
     try
     {
         RaceCategoryGroup = new BIZ.RaceCategoryGroup();
         PopulateBussinessLayer();
         RaceCategoryGroup.RaceCategoryGroupSelectAll(this.dataGridView1);
         if (this.dataGridView1.ColumnCount > 0)
         {
             this.dataGridView1.Columns[0].Visible = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }
Beispiel #3
0
 private void Save()
 {
     try
     {
         RaceCategoryGroup = new BIZ.RaceCategoryGroup();
         GetControlValue();
         PopulateBussinessLayer();
         if (RaceCategoryGroup.Save())
         {
             ClearControl();
             //this.txtLocationName.Focus();
             RaceCategoryGroupSelectAll();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }
Beispiel #4
0
 private void RemoveCategory()
 {
     try
     {
         if (this.cmbCategoryList.Text != "")
         {
             Action                     = "REMOVE";
             raceCategoryGroup          = new BIZ.RaceCategoryGroup();
             raceCategoryGroup.ClubID   = ClubID;
             raceCategoryGroup.EntryID  = EntryID;
             raceCategoryGroup.MemberID = MemberID;
             raceCategoryGroup.RaceCategoryGroupName = this.cmbCategoryList.Text;
             raceCategoryGroup.EntryList             = EntryList;
             SetCategoryList(raceCategoryGroup.RemoveEntryCategory());
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #5
0
 private void RaceCategoryGroupDelete()
 {
     try
     {
         RaceCategoryGroup = new BIZ.RaceCategoryGroup();
         GetControlValue();
         if (RaceCategoryGroupID > 0)
         {
             if ((MessageBox.Show("Are you sure! You would like to delete this record?", "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes))
             {
                 PopulateBussinessLayer();
                 RaceCategoryGroup.RaceCategoryGroupDelete();
                 ClearControl();
                 RaceCategoryGroupSelectAll();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }