Пример #1
0
 private void AddFixHolidayItem(Fixholiday fh)
 {
     string holiDate = fh.HoliDate;
     if (!this.fixHolidayItems.Contains(holiDate))
     {
         ListViewItem item = new ListViewItem(new string[] { fh.Description, holiDate });
         item.Tag = fh;
         this.lvFix.Items.Add(item);
         this.fixHolidayItems.Add(fh.HoliDate, item);
     }
 }
Пример #2
0
 private Fixholiday AddFixHoliday(string date, string desc)
 {
     Fixholiday fixholiday = new Fixholiday();
     fixholiday.HoliDate = date;
     fixholiday.Description = desc;
     this.currentUnitOfWork.RegisterNew(fixholiday);
     this.currentUnitOfWork.Commit();
     return fixholiday;
 }