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); }
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); }
public static GroupAction AddSimple(this GroupAction ga, string name, Action action) { ga._Add(new SimpleAction(name, action) { Parent = ga, Core = ga.Core }); return(ga); }
public static GroupAction AddGroup(this GroupAction ga, string name) { var g = new GroupAction(name) { Parent = ga, Core = ga.Core }; ga._Add(g); return(g); }