diff --git a/client/src/main/java/ru/trader/controllers/OffersController.java b/client/src/main/java/ru/trader/controllers/OffersController.java index 542ab1d..3c5f235 100644 --- a/client/src/main/java/ru/trader/controllers/OffersController.java +++ b/client/src/main/java/ru/trader/controllers/OffersController.java @@ -1,6 +1,7 @@ package ru.trader.controllers; import javafx.collections.FXCollections; +import javafx.event.ActionEvent; import javafx.scene.control.ListView; import javafx.scene.input.MouseButton; import org.slf4j.Logger; @@ -95,6 +96,14 @@ public class OffersController { return vendor; } + public void addVendor(ActionEvent actionEvent) { + Screeners.showAddVendor(); + } + + public void editVendor(ActionEvent actionEvent) { + Screeners.showEditVendor(vendor); + } + private OfferDescModel asOfferDescModel(OfferModel offer){ return MainController.getMarket().asOfferDescModel(offer); diff --git a/client/src/main/resources/view/main.fxml b/client/src/main/resources/view/main.fxml index d61ce51..989814c 100644 --- a/client/src/main/resources/view/main.fxml +++ b/client/src/main/resources/view/main.fxml @@ -15,7 +15,6 @@ - @@ -33,7 +32,7 @@ - + diff --git a/client/src/main/resources/view/offers.fxml b/client/src/main/resources/view/offers.fxml index 547fc57..c8e25f3 100644 --- a/client/src/main/resources/view/offers.fxml +++ b/client/src/main/resources/view/offers.fxml @@ -12,7 +12,16 @@ - + + + + + + + + + +