private void initialize()
        {
            this.conditionEventHandler            = iCollectItemView.getConditionEventHandler();
            this.todayJumpItemButton              = iCollectItemView.getTodayJumpItemButton();
            this.yesterdayHighestVolumeItemButton = iCollectItemView.getYesterdayHighestVolumeItemButton();
            this.toolStripProgressBar             = iCollectItemView.getToolStripProgressBar();
            this.toolStripStatusLabel             = iCollectItemView.getToolStripStatusLabel();

            this.todayJumpItemButton.Click += todayJumpItemButton_Click;
            this.yesterdayHighestVolumeItemButton.Click += yesterdayHighestVolumeItemButton_Click;
        }
Beispiel #2
0
        private void axKHOpenAPI1_OnEventConnect(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnEventConnectEvent e)
        {
            if (e.nErrCode == 0)
            {
                /**
                 * 로그인 성공시:
                 *  - progressbar update
                 *  - DB를 접속해서 어제 수집한 종목들을 gridview에 추가해 준다.
                 *  - Handler 들을 초기화한다?
                 */
                toolStripProgressBar.Value = 100;
                logger.Info($"로그인 성공. {DateTime.Now}");
                toolStripStatusLabel.Text = $"로그인 성공. {DateTime.Now}";

                opw00018EventHandler  = new Opw00018EventHandler(this, axKHOpenAPI1);
                conditionEventHandler = new ConditionEventHandler(this, axKHOpenAPI1);
                accountEventHandler   = new AccountEventHandler(this, axKHOpenAPI1);

                collectItemsViewController = new CollectItemsViewController(this);
                accountAlarmViewController = new AccountAlarmViewController(this);
                settingsViewController     = new SettingsViewController(this, this);
                chejanViewController       = new ChejanViewController(this);
            }
        }