Beispiel #1
0
        /// <summary>
        /// Process full IESO IDK bid text into it's fileheader,bidheader,bidbody
        /// </summary>
        /// <param name="data"></param>
        public void processFullBidString(string data)
        {
            try
            {
                string[] splitBid = data.Split(new char[] { '*' });

                fileHeader = new IMOBidFileHeader();
                fileHeader.processString(splitBid[0].Replace("\r\n", ""));

                bidHeader = new IMOBidHeader(fileHeader.market);
                string[] subSplit = splitBid[1].Split(new char[] { ';' });
                bidHeader.processString(subSplit[0].Replace("\r\n", ""));
                string bodyStr = "";
                for (int i = 1; i < subSplit.Count(); i++)
                {
                    bodyStr += subSplit[i];
                }

                bidBody = new IMOBidBody(m_Use3PartBidding, fileHeader.market);
                bidBody.processString(bodyStr);
            }
            catch (Exception e)
            {
                Console.Write("ASDF");
            }
        }
Beispiel #2
0
        /// <summary>
        /// This constructor is useful for handling bids from the LCA bid transfer/bid history table fields
        /// </summary>
        /// <param name="use3PartBidding"></param>
        /// <param name="fHeader"></param>
        /// <param name="bHeader"></param>
        /// <param name="bBody"></param>
        public Bid_IDK(bool use3PartBidding, string fHeader, string bHeader, string bBody)
        {
            m_Use3PartBidding = use3PartBidding;

            fileHeader = new IMOBidFileHeader();

            fileHeader.processString(fHeader);

            bidHeader = new IMOBidHeader(fileHeader.market);
            bidHeader.processString(bHeader);

            bidBody = new IMOBidBody(use3PartBidding, fileHeader.market);
            bidBody.processString(bBody);
        }