Пример #1
0
        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;
        }
Пример #2
0
        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();
        }