/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Controllers.Client;

import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.layout.AnchorPane;

/**
 * FXML Controller class
 *
 * @author Maher
 */
public class MenuClientController implements Initializable {

    /**
     * Initializes the controller class.
     */
    
    @FXML private AnchorPane AnchorPaneAjouterClient ;
    
    @FXML
    private void AjouterClientButtonAction(ActionEvent event) throws IOException {
       AnchorPaneAjouterClient.getChildren().clear();
       AnchorPaneAjouterClient.getChildren().add((Node) FXMLLoader.load(getClass().getResource("/Views/Client/AjouterClient.fxml")));
    }
    
    @FXML
    private void detailClientButtonAction(ActionEvent event) throws IOException {
       AnchorPaneAjouterClient.getChildren().clear();
       AnchorPaneAjouterClient.getChildren().add((Node) FXMLLoader.load(getClass().getResource("/Views/Client/GestionClientPersonne.fxml")));
    }
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        // TODO
    }    
    
}
