Пример #1
0
        public async static void startMasterThread()
        {
            SystemFlg.setMasterFlg(true);
            start_dt = new DateTime();
            start_dt = DateTime.Now;

            FlyerAPI2.startFlyerAPIMonitoring();

            while (SystemFlg.getMasterFlg())
            {
                await Task.Run(async() =>
                {
                    Form1.Form1Instance.Invoke((Action)(() =>
                    {
                        Form1.Form1Instance.setLabel10("system time elapsed (min)=" + Math.Round((DateTime.Now - start_dt).TotalMinutes, 2));
                    }));
                    await Task.Delay(100);
                    return(0);
                });
            }
        }
Пример #2
0
 private void buttonMarketData_Click(object sender, EventArgs e)
 {
     SystemFlg.setMasterFlg(true);
     MarketData.startMarketData();
     FlyerAPI2.startFlyerAPIMonitoring();
 }