Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WczytajListy()
- {
- int ilosclist = 0;
- foreach(string file in Directory.EnumerateFiles(Application.StartupPath+"/listy","*.lista"))
- {
- StreamReader sr = new StreamReader(file);
- int ilosc = Convert.ToInt16(sr.ReadLine());
- string nazwa = sr.ReadLine();
- int numer = Convert.ToInt32(sr.ReadLine());
- sr.Close();
- Lista list = new Lista(nazwa, numer);
- zbiorlist.Add(list);
- WczytajProdukty(list);
- ilosclist++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement