Ejemplo n.º 1
0
 public RealTimeDataModel()
 {
     networkMonitor = new NetworkMonitor();
     networkMonitor.InternetAvaliableChanged += OnInternetAvaliableChanged;
     executor = new Executor(networkMonitor);
     executor.ExecuteFailed += new EventHandler(OnExecuteFailed);
     transactions            = new List <TransactionData>();
     comparer = new PriceAscedingComparer();
     rand     = new Random();
 }
Ejemplo n.º 2
0
 public Executor(NetworkMonitor networkMonitor)
 {
     this.networkMonitor = networkMonitor;
     actions             = new Stack <ExecutorAction>();
 }