Exemplo n.º 1
0
 private void ScheduleCategorySelectAll()
 {
     try
     {
         scheduleCategory = new BIZ.RaceScheduleCategory();
         PopulateBussinessLayer();
         scheduleCategory.ScheduleCategorySelectAll(this.dataGridView1);
         DataGridViewCellStyle style = new DataGridViewCellStyle();
         style.Font = new Font(Font, FontStyle.Bold);
         dataGridView1.Columns[3].DefaultCellStyle = style;
         dataGridView1.Columns[4].DefaultCellStyle = style;
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }
Exemplo n.º 2
0
 private void ScheduleCategorySelectAll()
 {
     try
     {
         raceScheduleCategory = new BIZ.RaceScheduleCategory();
         PopulateBusinessLayer(Common.Common.RaceResult.RaceScheduleCategory);
         raceScheduleCategory.ScheduleCategorySelectAll(this.dataGridView2);
         DataGridViewCellStyle style = new DataGridViewCellStyle();
         style.Font = new Font(Font, FontStyle.Bold);
         dataGridView2.Columns[1].DefaultCellStyle = style;
         //dataGridView2.Columns[4].DefaultCellStyle = style;
         dataGridView2.Columns[0].Visible = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }