Пример #1
0
 public static GroupAction AddPeriodical(this GroupAction ga, string name, Action action, TimeSpan lastFor, TimeSpan sleepFor)
 {
     ga._Add(new PeriodicalAction(name, action, lastFor, sleepFor)
     {
         Parent = ga, Core = ga.Core
     });
     return(ga);
 }
Пример #2
0
 public static GroupAction AddRepeat(this GroupAction ga, string name, Action action, int count, TimeSpan sleepFor)
 {
     ga._Add(new RepeatAction(name, action, count, sleepFor)
     {
         Parent = ga, Core = ga.Core
     });
     return(ga);
 }
Пример #3
0
 public static GroupAction AddSimple(this GroupAction ga, string name, Action action)
 {
     ga._Add(new SimpleAction(name, action)
     {
         Parent = ga, Core = ga.Core
     });
     return(ga);
 }
Пример #4
0
        public static GroupAction AddGroup(this GroupAction ga, string name)
        {
            var g = new GroupAction(name)
            {
                Parent = ga, Core = ga.Core
            };

            ga._Add(g);
            return(g);
        }