static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); stockBotDlg_ = new StockBotDlg(); Application.Run(stockBotDlg_); }
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(); }