Exemplo n.º 1
0
        public IDataForward_Code CreateDataForward_Code(XmlElement xmlElem)
        {
            string forwardType = xmlElem.GetAttribute("forwardType");

            if (forwardType.Equals("kline"))
            {
                DataForward_Code_KLine dataForward = new DataForward_Code_KLine(dataCenter);
                dataForward.Load(xmlElem);
                return(dataForward);
            }
            else if (forwardType.Equals("tick"))
            {
                DataForward_Code_Tick2 dataForward = new DataForward_Code_Tick2(dataCenter);
                dataForward.Load(xmlElem);
                return(dataForward);
            }
            return(null);
        }