Exemplo n.º 1
0
 public BlockWrapper(IScheduledItem item, string StrBase, string BeginOffset, string EndOffset)
 {
     _Item  = item;
     _Begin = new ScheduledTime(StrBase, BeginOffset);
     _End   = new ScheduledTime(StrBase, EndOffset);
 }
Exemplo n.º 2
0
 public void Remove(string profilename,string stroffset, string StrBase)
 {
     var sched = new  ScheduledTime(StrBase, stroffset);
     var item2 = from TimerJob tjob in _List
               let schedvalue = tjob.Schedule as ScheduledTime
               where tjob.ProfileName == profilename
                     &&
                     schedvalue.Base == sched.Base
                     &&
                     schedvalue.Offset == sched.Offset
               select tjob;
       _List.Remove(item2.First());
 }