private void FCode_TextChanged(object sender, TextChangedEventArgs e)
        {
            string fcode = FCode.Text;

            if (fcode.Length == 5)
            {
                Comm_Obj_FC.UnRequestRTReg("FC", gFCode);
                Comm_Obj_FH.UnRequestRTReg("FH", gFCode);
                gFCode = fcode;

                Comm_Obj_FC.SetQueryName("FC");
                Comm_Obj_FC.SetSingleData(0, gFCode);
                Comm_Obj_FC.RequestData();

                Comm_Obj_FH.SetQueryName("FH");
                Comm_Obj_FH.SetSingleData(0, gFCode);
                Comm_Obj_FH.RequestData();
            }
        }
        private void Send_Order(bool bBuy)
        {
            string strAcct  = AcctNo.Text;
            string strpwd   = PWD.Text;
            string strPrice = Price.Text;
            string strQty   = Qty.Text;
            string strOrder = "01";

            if (strAcct.Length != 11 || strpwd.Length != 4)
            {
                MessageBox.Show("계좌비번을 확인하세요");
                return;
            }

            if (bBuy)
            {
                strOrder = "02";
            }

            Comm_Obj_Order.SetQueryName("SABC100U1");

            Comm_Obj_Order.SetSingleData(0, strAcct);                                       // 계좌번호
            Comm_Obj_Order.SetSingleData(1, strpwd);                                        // 비밀번호
            Comm_Obj_Order.SetSingleData(2, gFCode);                                        // 종목코드
            Comm_Obj_Order.SetSingleData(3, strQty);                                        // 주문수량
            Comm_Obj_Order.SetSingleData(4, strPrice);                                      // 주문단가
            Comm_Obj_Order.SetSingleData(5, "0");                                           // 주문조건
            Comm_Obj_Order.SetSingleData(6, strOrder);                                      // 매매구분
            Comm_Obj_Order.SetSingleData(7, "L");                                           // 호가유형
            Comm_Obj_Order.SetSingleData(8, "3");                                           // 차익거래구분
            Comm_Obj_Order.SetSingleData(9, "1");                                           // 처리구분
            Comm_Obj_Order.SetSingleData(10, "0");                                          // 정정취소수량구분
            Comm_Obj_Order.SetSingleData(11, "0");                                          // 정정취소수량구분

            if (Comm_Obj_Order.RequestData() <= 0)
            {
                MessageBox.Show("주문전송실패");
            }
        }