static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainForm    = new DCMainForm();
            MiniMonitor = new DCMiniMonitor();

            // Set data collector mini monitor form as an initial one
            Application.Run(MiniMonitor);
        }
Exemple #2
0
        public CQGDataManagement(DCMainForm mainForm, DCMiniMonitor miniMonitor)
        {
            this.mainForm    = mainForm;
            this.miniMonitor = miniMonitor;
            string path     = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string assmPath = Path.Combine(path, "Interop.CQG.dll");

            this.CQGAssm = Assembly.LoadFile(assmPath);

            ThreadPool.QueueUserWorkItem(new WaitCallback(initializeCQGAndCallbacks));
        }