private void KiwoomApiForm_Load(object sender, EventArgs e) { Form form = (Form)sender; form.ShowInTaskbar = false; form.Opacity = 0; api = KiwoomApiController.Instance; api.AxKHOpenAPI = this.axKHOpenAPI; }
private static void startConnect() { Thread.Sleep(5000); logger.Info("START CONNECT TO SERVER"); ApiSocketServer apiSocketServer = new ApiSocketServer(); apiSocketServer.StartServer(); //new EndProgramThread().Start(); KiwoomApiController kiwoomApiController = KiwoomApiController.Instance; kiwoomApiController.Init(); ApiSocketClient.Instance.ConnectServer(); }