Esempio n. 1
0
 private void AddActivation(DateTime startTime, SC.Interfaces.DefaultPlugins.DurationType durationType, SCTimeSpan duration, SCTimeSpan repetition)
 {
     if (InvokeRequired)
     {
         Invoke(new SC.Messaging.Delegate <DateTime, SC.Interfaces.DefaultPlugins.DurationType, SCTimeSpan, SCTimeSpan>(AddActivation), startTime, durationType, duration, repetition);
     }
     else
     {
         Activation act = new Activation(startTime, durationType, duration, repetition);
         act = act.GetPendingActivation();
         times.Add(act.StartTime, act);
     }
 }
Esempio n. 2
0
 private void AddActivation(DateTime startTime, SC.Interfaces.DefaultPlugins.DurationType durationType, SCTimeSpan duration, SCTimeSpan repetition)
 {
     if (InvokeRequired)
         Invoke(new SC.Messaging.Delegate<DateTime, SC.Interfaces.DefaultPlugins.DurationType, SCTimeSpan, SCTimeSpan>(AddActivation), startTime, durationType, duration, repetition);
     else
     {
         Activation act = new Activation(startTime, durationType, duration, repetition);
         act = act.GetPendingActivation();
         times.Add(act.StartTime, act);
     }
 }