I have a Security class than contains two variable of the type List<Prices>, called CurrentPrices and NextPrices. The Prices class code is shown below.
The List will contain normally a 1000 plus elements. The seucrity class use's the CurrentPrices type in some calcualtions & after which each one an element is removed from the List. What I would like to happen is when the List count falls below a certain number, say 20 for example an event fires to tell the security object that it needs to copy NexPrices to the CurrentPrices list.
Have little knowledge of events. If this is a poor way of using an event please let me know, however I still like to know how to do this.
Thanks for any help,
public class Price
public DateTime dtDTime;
public double BidOpen, BidHigh, BidLow, BidClose;
public double AskOpen, AskHigh, AskLow, AskClose;
public double MidOpen, MidHigh, MidLow, MidClose;