public IPXTrigger Add(PXTriggerContext context) { context.PropertyChanged += Context_PropertyChanged; IPXTrigger newTrigger = GetTrigger(context); triggers.Add(newTrigger); return(newTrigger); }
//public IEnumerable<PXTriggerContext> Save() //{ // List<PXTriggerContext> contexts = List().ToList(); // return contexts; //} public IPXTrigger GetTrigger(PXTriggerContext context) { if (context.Key == "rss") { return(new RSS.RSS(context)); } else if (context.Key == "test") { return(new TriggerTest(context)); } return(null); }
public PXTriggerBase(PXTriggerContext context) { this.context = context; this.localStorage = context.LocalStorage; }
public TriggerTest(PXTriggerContext context) : base(context) { }