Esempio n. 1
0
 private void bwDelete_DoWork(object sender, DoWorkEventArgs e)
 {
     foreach (OffDayModel offDay in offDayToDeleteList)
     {
         OffDayController.Delete(offDay.Date.Date);
     }
 }
Esempio n. 2
0
        private void bwRemove_DoWork(object sender, DoWorkEventArgs e)
        {
            foreach (var removeItem in offDayToRemoveList)
            {
                // Remove offday
                OffDayController.Delete(removeItem.OffDayID);
                offDayCurrentList.Remove(removeItem);

                // Remove offdaymap by OffDayID
                RemoveOffDayMap(removeItem.OffDayID);
            }
        }