예제 #1
0
파일: Matrix.cs 프로젝트: ufjl0683/Center
        public Matrix()
        {
            //   new Event.MovingConstruct.MovingConstructRange(1, "1", DateTime.Now, "N1", "N", 100, 1000, 0, "AA", "AA");
            #if DEBUG
              // timcc_section_mgr = new Host.TIMCC.TIMCC_SectionManager("temp.xml");
               timcc_section_mgr = new Host.TIMCC.TIMCC_SectionManager("http://10.1.1.50/section_traffic_data.xml");
               xml_weather_mgr = new XmlWeatherManager();

            #else
               timcc_section_mgr = new Host.TIMCC.TIMCC_SectionManager("http://10.21.50.100/N_section_traffic_data.xml");
            xml_weather_mgr = new XmlWeatherManager();
            #endif

               mfcc_mgr = new MFCC.MFCC_Manager();

             //  rgs_polygon_section_mapping = new RGS_PolygonSectionMapping();
               tmr1min.Elapsed += new System.Timers.ElapsedEventHandler(tmr1min_Elapsed);
            #if !DEBUG
               Schedule.ScheduleManager.LoadAllSchedule();
            #endif
        }
예제 #2
0
파일: Program.cs 프로젝트: ufjl0683/Center
        static void WeatherTest()
        {
            XmlWeatherManager mgr = new XmlWeatherManager();
            WeartherData data=new WeartherData();
               string filename= mgr.GetXmlFileNameByLocation("T74", "E", 12000);
              WeartherData data1= mgr.getWeather(filename);

            //mgr.GetWeatherData("http://10.21.50.100/36_06.xml",data);
            if(data1.IsValid)
            Console.WriteLine(data1);
        }