Skip to content
Snippets Groups Projects
Commit 61910dce authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

HT melkein valmis

parent 53b9cd0c
No related branches found
No related tags found
No related merge requests found
......@@ -2,3 +2,12 @@
20|1|Pitsin nypläys|1914|23
21|2|Pitsin nypläys|1905|46
22|1|Pitsin nypläys|1958|59
23|224|Pitsin nypläys|1947|4
24|224|Pitsin nypläys|1958|54
25|224|Pitsin nypläys|1945|20
26|224|Pitsin nypläys|1929|40
27|224|Pitsin nypläys|1939|3
28|224|Pitsin nypläys|1952|28
29|224|Pitsin nypläys|1931|30
30|224|Pitsin nypläys|1976|35
31|224|Pitsin nypläys|1907|27
......@@ -169,11 +169,15 @@ public class KerhoGUIController implements Initializable {
* @param nimi tiedosto josta kerhon tiedot luetaan
*/
protected void lueTiedosto(String nimi) {
kerhonnimi = nimi;
kerhonnimi = nimi;
setTitle("Kerho - " + kerhonnimi);
String virhe = "Ei osata lukea vielä"; // TODO: tähän oikea tiedoston lukeminen
// if (virhe != null)
Dialogs.showMessageDialog(virhe);
try {
kerho.lueTiedostosta(nimi);
hae(0);
} catch (SailoException e) {
Dialogs.showMessageDialog(e.getMessage());
}
}
......@@ -193,7 +197,11 @@ public class KerhoGUIController implements Initializable {
* Tietojen tallennus
*/
private void tallenna() {
Dialogs.showMessageDialog("Tallennetetaan! Mutta ei toimi vielä");
try {
kerho.tallenna("kelmit");
} catch (SailoException e) {
Dialogs.showMessageDialog(e.getMessage());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment