Example #1
0
        //데이터 수집
        public static bool DataRetrieval()
        {
            var functionResult = true;

            //Particular File load
            shipParticular = CsvFileController.ReadParticularFile("particular.csv");
            //speed Power File Load
            speedPowerData = CsvFileController.ReadSpeedPowerDataFileToList("speedPower.csv");
            //draft Data
            draft = CsvFileController.ReadDraftFile("draft.csv");

            //선박 운항 데이터 불러오기
            sailingData = CsvFileController.Read19030DataFileToList("voyageData.csv");

            foreach (var _d in speedPowerData)
            {
                ballastPowerList.Add(_d.BALLAST_POWER);
                ballastSpeedList.Add(_d.BALLAST_SPEED);
                scantlingPowerList.Add(_d.SCANTLING_POWER);
                scantlingSpeedList.Add(_d.SCANTLING_SPEED);
            }

            if (shipParticular == null || sailingData == null)
            {
                functionResult = false;
            }
            return(functionResult);
        }
 public ImportCsvWindow()
 {
     InitializeComponent();
     lastOpendLocation = "";
     csvFile           = new CsvFileController(this);
 }