private void ucitajPodatke() { try { dostupniPodaci = false; podaci = PodaciAlat.ucitajPodatke(); dostupniPodaci = true; } catch (FileNotFoundException exc) { MessageBox.Show("Slijedeća datoteka nije pronađena u odabranom direktoriju:\n" + exc.FileName, "Datoteka nedostaje", MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (DirectoryNotFoundException exc) { MessageBox.Show(exc.Message, "Datoteka nedostaje", MessageBoxButtons.OK, MessageBoxIcon.Error); } }