コード例 #1
0
ファイル: Program.cs プロジェクト: lmwlmw/StockBot
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     stockBotDlg_ = new StockBotDlg();
     Application.Run(stockBotDlg_);
 }
コード例 #2
0
        public void setup(StockBotDlg StockBot)
        {
            StockBot_  = StockBot;
            khOpenApi_ = StockBot_.openApi();
            khOpenApi_.CreateControl();

            receivePoolLock_ = new object();
            tradingPoolLock_ = new object();

            statmentOrderPool_ = new ConcurrentQueue <StockStatement>();

            // 런 함수를 쓰레드로 계속 돌려 줍니다.
            thread_ = new Thread(this.run);
            thread_.Start();
        }