public RealtimeDataManagement() { InitializeComponent(); cqgDataManagement = new CQGDataManagement(this); MongoDBConnectionAndSetup mongoDBConnectionAndSetup = new MongoDBConnectionAndSetup(); //mongoDBConnectionAndSetup.connectToMongoDB(); //mongoDBConnectionAndSetup.createDocument(); //mongoDBConnectionAndSetup.dropCollection(); var contextTMLDB = new DataClassesTMLDBDataContext( System.Configuration.ConfigurationManager.ConnectionStrings["TMLDBConnectionString"].ConnectionString); TMLDBReader TMLDBReader = new TMLDBReader(contextTMLDB); bool gotInstrumentList = TMLDBReader.GetTblInstruments(ref cqgDataManagement.instrumentHashTable, ref cqgDataManagement.instrumentList); Console.WriteLine(cqgDataManagement.instrumentList[0].description); AsyncTaskListener.Updated += AsyncTaskListener_Updated; testLoadIn(); testGetData(); //mongoDBConnectionAndSetup.createDoc(); //mongoDBConnectionAndSetup.getDocument(); }
public QueryHandler(CQGDataManagement cqgDM) { CqgDataManagement = cqgDM; UsedObjs = new Hashtable(); QueryList = new List <QueryInfo>(); CQGAssm = cqgDM.CQGAssm; }
internal QueryHandler(CQGDataManagement cqgDM, IList <QueryInfo> ql) { CqgDataManagement = cqgDM; UsedObjs = new Hashtable(); QueryList = new List <QueryInfo>(ql); CQGAssm = cqgDM.CQGAssm; }
private void InitActions() { InitializeComponent(); CenterToScreen(); MinimumSize = Size; CqgDataManagement = new CQGDataManagement(this, Program.MiniMonitor); QueryHandler = new QueryHandler(CqgDataManagement); QueryHandler.InitHMethodDict(); Listener.StartListening(HandshakingTimerInterval); Listener.SubscribersAdded += Listener_SubscribersAdded; AsyncTaskListener.Updated += AsyncTaskListener_Updated; HandshakingTimer.Disposed += HandshakingTimer_Disposed; HandshakingTimer.Interval = DictionaryClearingInterval; HandshakingTimer.AutoReset = false; EventHandler.EventAppsSubscribersNum = new Dictionary <string, int>(); }