Exemple #1
0
        public QueryCtrl()
        {
            m_bRealSet = false;

            UCOMIConnectionPoint          icp;
            UCOMIConnectionPointContainer icpc;

            int dwCookie = 0;

            m_Query             = new XAQuery();
            m_Query.ResFileName = "\\res\\t1101.res";
            icpc = (UCOMIConnectionPointContainer)m_Query;
            Guid IID_QueryEvents = typeof(_IXAQueryEvents).GUID;

            icpc.FindConnectionPoint(ref IID_QueryEvents, out icp);
            icp.Advise(this, out dwCookie);

            dwCookie           = 0;
            m_Real             = new XAReal();
            m_Real.ResFileName = "\\res\\S3_.res";                 //KOSPI체결
            icpc = (UCOMIConnectionPointContainer)m_Real;
            Guid IID_RealEvents = typeof(_IXARealEvents).GUID;

            icpc.FindConnectionPoint(ref IID_RealEvents, out icp);
            icp.Advise(this, out dwCookie);

            dwCookie            = 0;
            m_Real2             = new XAReal();
            m_Real2.ResFileName = "\\res\\H1_.res";                 //KOSPI체결
            icpc = (UCOMIConnectionPointContainer)m_Real2;
            icpc.FindConnectionPoint(ref IID_RealEvents, out icp);
            icp.Advise(this, out dwCookie);
        }
Exemple #2
0
        public QueryCtrl()
        {
            UCOMIConnectionPoint          icp;
            UCOMIConnectionPointContainer icpc;

            int dwCookie = 0;

            m_query = new XAQuery();
            //m_query.ResFileName = "\\res\\t8435.res";
            icpc = (UCOMIConnectionPointContainer)m_query;
            Guid IID_QueryEvents = typeof(_IXAQueryEvents).GUID;

            icpc.FindConnectionPoint(ref IID_QueryEvents, out icp);
            icp.Advise(this, out dwCookie);

            m_real = new XAReal();
        }
Exemple #3
0
        /// <summary>생성자</summary>
        public xing_real_jif()
        {
            IConnectionPoint          icp;
            IConnectionPointContainer icpc;

            int iCookie = 0;

            mReal             = new XAReal();
            mReal.ResFileName = "\\res\\JIF.res";
            icpc = (IConnectionPointContainer)mReal;
            Guid IID_RealEvents = typeof(_IXARealEvents).GUID;

            icpc.FindConnectionPoint(ref IID_RealEvents, out icp);
            icp.Advise(this, out iCookie);

            // 장 상태 값 초기화
            init_jstatus();
        }               // end function
Exemple #4
0
        public RealEvents(string szTrCode)
        {
            var resFileName = Path.Combine(Settings.Default.root_path, "Res", szTrCode + ".res");

            _resModel = ReadResFile.Read(resFileName);

            int dwCookie = 0;
            IConnectionPoint          icp;
            IConnectionPointContainer icpc;

            _ixa = new XAReal
            {
                ResFileName = resFileName
            };
            icpc = (IConnectionPointContainer)_ixa;
            Guid iidRealEvents = typeof(_IXARealEvents).GUID;

            icpc.FindConnectionPoint(ref iidRealEvents, out icp);
            icp.Advise(this, out dwCookie);

            Console.WriteLine("RealEvents 생성자완료");
        }