Example #1
0
        private void btn_update_Click(object sender, EventArgs e)
        {
            string[] download_filenames = Directory.GetFiles(@"C:\Users\" + Environment.UserName + "\\Nudge", "*.xml");
            DirectoryInfo di = new DirectoryInfo(@"C:\Users\" + Environment.UserName + "\\Nudge");

            if (di.Exists == false)
            {
                di.Create();
            }

            if (pData.GetDownload() == true)
            {
                //파일 다운로스 시작
                FileDownloader fd = new FileDownloader(download_filenames, sData, pData.GetProjectName(), user_id);
            }

            route_data = new List<RouteData>();
            survey_data = new List<SurveyData>();
            total_data = new List<TotalData>();

            XmlRead();        //다운로드 되어있는 Xml 읽어와서 데이터 저장
        }
Example #2
0
        private void Analysis_Setup()
        {
            //처음 눌렀을 때 초기화 해주고 그 다음부터는 바로 보여주는 곳으로.

            total_data = new List<TotalData>();
            pictures = new List<PictureBox>();
            count = new List<int>();
            under_bar_index = new List<int>();
            route_data = new List<RouteData>();
            survey_data = new List<SurveyData>();
            sName = new List<string>();

            for (int i = 0; i < listBox_scenario.Items.Count; i++)
            {
                Console.WriteLine(listBox_scenario.Items[i].ToString());
                sName.Add(listBox_scenario.Items[i].ToString());
            }

            string[] download_filenames = Directory.GetFiles(@"C:\Users\" + Environment.UserName + "\\Nudge", "*.xml");
            DirectoryInfo di = new DirectoryInfo(@"C:\Users\" + Environment.UserName + "\\Nudge");

            if (di.Exists == false)
            {
                di.Create();
            }

            if (pData.GetDownload() == true)
            {
                //파일 다운로스 시작
                FileDownloader fd = new FileDownloader(download_filenames, sData, pData.GetProjectName(), user_id);
            }

            XmlRead();        //다운로드 되어있는 Xml 읽어와서 데이터 저장
        }