From 69f61a6a9d87331dabb44e17f9306f1911e389d4 Mon Sep 17 00:00:00 2001 From: Raphael LACOTE Date: Tue, 13 Dec 2022 17:06:45 +0100 Subject: [PATCH] =?UTF-8?q?Rectification=20d'un=20probl=C3=A8me=20d'affich?= =?UTF-8?q?age=20(Mais=20c'est=20d=C3=A9gueulasse)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/IHM/Desktop/DashBoard.xaml | 19 +++++--------- Sources/IHM/Desktop/Dashboard.xaml.cs | 37 ++++++++++++++++++++++----- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/Sources/IHM/Desktop/DashBoard.xaml b/Sources/IHM/Desktop/DashBoard.xaml index bd440f3..5dbd7a6 100644 --- a/Sources/IHM/Desktop/DashBoard.xaml +++ b/Sources/IHM/Desktop/DashBoard.xaml @@ -30,20 +30,15 @@ - - - - - - - + + + + + + + - - - - - diff --git a/Sources/IHM/Desktop/Dashboard.xaml.cs b/Sources/IHM/Desktop/Dashboard.xaml.cs index 582ac2f..edcacd6 100644 --- a/Sources/IHM/Desktop/Dashboard.xaml.cs +++ b/Sources/IHM/Desktop/Dashboard.xaml.cs @@ -4,29 +4,52 @@ namespace IHM.Desktop; public partial class Dashboard { - public Dashboard() + + public Dashboard() { InitializeComponent(); } - private void Button_planification(object sender, EventArgs e) + private void RetourFormeBase() + { + ButPla.BackgroundColor = Colors.Yellow; ButPla.TextColor = Colors.Black; + ButEch.BackgroundColor = Colors.Yellow; ButEch.TextColor = Colors.Black; + ButOpe.BackgroundColor = Colors.Yellow; ButOpe.TextColor = Colors.Black; + ButCom.BackgroundColor = Colors.Yellow; ButCom.TextColor = Colors.Black; + ButAcc.BackgroundColor = Colors.Yellow; ButAcc.TextColor = Colors.Black; + ButSta.BackgroundColor = Colors.Yellow; ButSta.TextColor = Colors.Black; + } + + private void Button_planification(object sender, EventArgs e) { - mainCV.Content= new CV_Planification(); + RetourFormeBase(); + ButPla.TextColor = Colors.White; + ButPla.BackgroundColor = Colors.Red; + mainCV.Content= new CV_Planification(); } - private void Button_echeancier(object sender, EventArgs e) + private void Button_echeancier(object sender, EventArgs e) { - mainCV.Content = new Echeancier(); + RetourFormeBase(); + ButEch.TextColor = Colors.White; + ButEch.BackgroundColor = Colors.Red; + mainCV.Content = new Echeancier(); } private void Button_operation(object sender, EventArgs e) { - mainCV.Content = new Operations(); + RetourFormeBase(); + ButOpe.TextColor = Colors.White; + ButOpe.BackgroundColor = Colors.Red; + mainCV.Content = new Operations(); } private void Button_compte(object sender, EventArgs e) { - mainCV.Content = new Compte(); + RetourFormeBase(); + ButCom.TextColor = Colors.White; + ButCom.BackgroundColor = Colors.Red; + mainCV.Content = new Compte(); } private void Button_Clicked(object sender, EventArgs e)