private Global() { OrdetTable = new DataTable(); OrdetTable = ReadyOrderBook(); OrdetTable.DefaultView.Sort = "TokenNo"; //OrdetTable.DefaultView.Sort = "LogTime"; NetBookTable = new DataTable(); NetBookTable = NetBookOrderBook(); TradeTracker = new DataTable(); TradeTracker = ReadyDatatable(); var config = new Config { GroupName = null }; DataConIp = config.GetValue("appSettings", "DataConIp", null); DataConSUBPort = config.GetValue("appSettings", "DataConSUBPort", null); NNFConIp = config.GetValue("appSettings", "NNFConIp", null); NNFConPUBPort = config.GetValue("appSettings", "NNFConPUBPort", null); NNFConSUBPort = config.GetValue("appSettings", "NNFConSUBPort", null); LanIp = config.GetValue("appSettings", "LanIp", null); ClientId = Convert.ToInt64(config.GetValue("appSettings", "ClientId", null)); McastIp = config.GetValue("appSettings", "McastIp", null); Mcastport = config.GetValue("appSettings", "Mcastport", null); McastIp = config.GetValue("appSettings", "McastIp", null); INDEXIP = config.GetValue("appSettings", "INDEXIP", null); // MessageBox.Show("step1"); INDEXPORT = config.GetValue("appSettings", "INDEXPORT", null); // MessageBox.Show("step2"); APPTYPE = config.GetValue("appSettings", "APPTYPE", null); interval = Convert.ToInt32(config.GetValue("appSettings", "Interval", null)); cashDataSection = new LzoCashData(); CashSock.DataArrival += cashDataSection.OnDataArrival; // MessageBox.Show("step1"); // NNFPassword=config.GetValue("Profile","NNFPassword",null); //Console.WriteLine("DataConIp :" + DataConIp); //Console.WriteLine("DataConSUBPort :" + DataConSUBPort); //Console.WriteLine("NNFConIp :" + NNFConIp); //Console.WriteLine("NNFConPUBPort :" + NNFConPUBPort); //Console.WriteLine("NNFConSUBPort :" + NNFConSUBPort); //Console.WriteLine("ClientId :" + ClientId); }
private Global() { OrdetTable = new DataTable(); OrdetTable = ReadyOrderBook(); TradeTracker = new DataTable(); TradeTracker = ReadyDatatable(); Child_Index = new DataTable(); Child_Index = child_index_Datatable(); var config = new Config { GroupName = null }; DataConIp = config.GetValue("appSettings", "DataConIp", null); DataConSUBPort = config.GetValue("appSettings", "DataConSUBPort", null); NNFConIp = config.GetValue("appSettings", "NNFConIp", null); NNFConPUBPort = config.GetValue("appSettings", "NNFConPUBPort", null); NNFConSUBPort = config.GetValue("appSettings", "NNFConSUBPort", null); LanIp = config.GetValue("appSettings", "LanIp", null); ClientId =Convert.ToInt32(config.GetValue("appSettings", "ClientId", null)); LZOIP = config.GetValue("appSettings", "LZOIP", null); LZOPORT = config.GetValue("appSettings", "LZOPORT", null); INDEXIP = config.GetValue("appSettings", "INDEXIP", null); INDEXPORT = config.GetValue("appSettings", "INDEXPORT", null); APPTYPE = config.GetValue("appSettings", "APPTYPE", null); interval = Convert.ToInt32(config.GetValue("appSettings", "Interval", null)); cashDataSection = new LzoCashData(); CashSock.DataArrival += cashDataSection.OnDataArrival; //pData = new Primary(); // FoSock.DataArrival += pData.OnDataArrival; // thDataFilter = new Thread(new ThreadStart(StartMyThread)); // thDataFilter.Start(); // NNFPassword=config.GetValue("Profile","NNFPassword",null); //Console.WriteLine("DataConIp :" + DataConIp); //Console.WriteLine("DataConSUBPort :" + DataConSUBPort); //Console.WriteLine("NNFConIp :" + NNFConIp); //Console.WriteLine("NNFConPUBPort :" + NNFConPUBPort); //Console.WriteLine("NNFConSUBPort :" + NNFConSUBPort); //Console.WriteLine("ClientId :" + ClientId); }