2025-06-02 13:19:31 +00:00
|
|
|
|
using projet.Controller;
|
|
|
|
|
|
using projet.modele;
|
|
|
|
|
|
using System;
|
2025-05-27 09:07:13 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
|
|
namespace projet.View
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class ConfirmeSupressionPersonnel : Form
|
|
|
|
|
|
{
|
2025-06-02 13:19:31 +00:00
|
|
|
|
private ConfirmeSupressionPersonnelController controller;
|
|
|
|
|
|
private Personnel personne;
|
|
|
|
|
|
public ConfirmeSupressionPersonnel(Personnel personne)
|
2025-05-27 09:07:13 +00:00
|
|
|
|
{
|
2025-06-02 13:19:31 +00:00
|
|
|
|
Init();
|
2025-05-27 09:07:13 +00:00
|
|
|
|
InitializeComponent();
|
2025-06-02 13:19:31 +00:00
|
|
|
|
this.personne = personne;
|
|
|
|
|
|
labelTitle.Text = $"Voulez vous vraiment supprimer : {personne} ?";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Init()
|
|
|
|
|
|
{
|
|
|
|
|
|
controller = new ConfirmeSupressionPersonnelController();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void buttonAnnuler_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Hide();
|
|
|
|
|
|
this.Close();
|
|
|
|
|
|
Admin admin = new Admin();
|
|
|
|
|
|
admin.ShowDialog();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void buttonConfirmer_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
controller.deletePersonnel(personne);
|
|
|
|
|
|
this.Hide();
|
|
|
|
|
|
this.Close();
|
|
|
|
|
|
Admin admin = new Admin();
|
|
|
|
|
|
admin.ShowDialog();
|
2025-05-27 09:07:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|