Fixed edit events
This commit is contained in:
parent
b460a77e8c
commit
47739a3783
@ -156,11 +156,11 @@ public class MainController {
|
|||||||
private void addEvent(Event event) {
|
private void addEvent(Event event) {
|
||||||
EventPane eventPane = new EventPane(event);
|
EventPane eventPane = new EventPane(event);
|
||||||
eventPane.getEditBtn().setOnAction(event1 -> MainApplication.loadScene(
|
eventPane.getEditBtn().setOnAction(event1 -> MainApplication.loadScene(
|
||||||
|
"Termin bearbeiten",
|
||||||
"edit-event.fxml",
|
"edit-event.fxml",
|
||||||
"create-event.css",
|
"create-event.css",
|
||||||
"Termin bearbeiten",
|
650,
|
||||||
600,
|
650,
|
||||||
600,
|
|
||||||
fxmlLoader -> {
|
fxmlLoader -> {
|
||||||
EditEventController editEventController = fxmlLoader.getController();
|
EditEventController editEventController = fxmlLoader.getController();
|
||||||
editEventController.setCurrentEvent(event);
|
editEventController.setCurrentEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user