Example #1
0
 public HeaderBuilder(GridType grdType)
 {
     this.gridType = grdType;
     if (gridType == GridType.DefaultType)
     {
         if (headGen == null)
         {
             headGen = new DefaultHeaderGenerator();
         }
     }
     else if (gridType == GridType.YearMonthWeekNoDayType)
     {
         if (headGen == null)
         {
             headGen = new YearMonthWeekNoDayHeaderGenerator();
         }
     }
 }
Example #2
0
 public void AddHeader(Header header)
 {
     if (gridType == GridType.DefaultType)
     {
         if (headGen == null)
         {
             headGen = new DefaultHeaderGenerator();
         }
     }
     else if (gridType == GridType.YearMonthWeekNoDayType)
     {
         if (headGen == null)
         {
             headGen = new YearMonthWeekNoDayHeaderGenerator();
         }
     }
     headGen.AddHeaders(header);
 }