Esempio n. 1
0
        private void Wweek2_Load(object sender, EventArgs e)
        {
            loadWeek     = File.ReadAllLines(cesta).Skip(1).Select(x => LoadDataFromCSV.GetPrintData(x)).ToList();
            label12.Text = nazevtydne;

            setDay.DataSource    = loadWeek.Select(x => x.Day).Distinct().ToArray();
            setDay.SelectedIndex = -1;
            progressBar1.Hide();
        }
Esempio n. 2
0
        public static LoadDataFromCSV GetPrintData(string line) //? proc line
        {
            string[]        values = line.Split(';');
            LoadDataFromCSV data   = new LoadDataFromCSV();

            data.Day         = values[0];
            data.Type        = values[1];
            data.SpecialPage = values[2];
            data.Path        = values[3];
            return(data);
        }