示例#1
0
 public static void StandardFormat(ref FormMsgChannelDesc oDesc)
 {
     oDesc.MsgAuth = new TradeOcxMsgAuthType[(int)TradeOcxMsgType.E_OCX_UNKNOWN_MSG];
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_PRV_LOG_MSG]       = TradeOcxMsgAuthType.E_OCX_PRIVATE_MSG;
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_HQ_MSG]            = TradeOcxMsgAuthType.E_OCX_PUBLIC_MSG;
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_QUERY_MSG]         = TradeOcxMsgAuthType.E_OCX_PRIVATE_MSG;
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_OTHER_MSG]         = TradeOcxMsgAuthType.E_OCX_PRIVATE_MSG;
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_TRADE_SIG_MSG]     = TradeOcxMsgAuthType.E_OCX_PRIVATE_MSG;
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_ARBITRAGE_HQ_MSG]  = TradeOcxMsgAuthType.E_OCX_PRIVATE_MSG;
     oDesc.MsgAuth[(int)TradeOcxMsgType.E_OCX_TRADE_POSTION_MSG] = TradeOcxMsgAuthType.E_OCX_PRIVATE_MSG;
 }
示例#2
0
        public void Init(Delegate_RegisterOcxMsgChannel del_Method)
        {
            delegate_RegisterOcxMsgChannel = del_Method;
            FormMsgChannelDesc oMsgInfo = new FormMsgChannelDesc();

            FormMsgChannelDesc.StandardFormat(ref oMsgInfo);

            oMsgInfo.TradeFormInt = this;
            if (null != delegate_RegisterOcxMsgChannel)
            {
                delegate_RegisterOcxMsgChannel(oMsgInfo);
            }
        }