diff --git a/.drone.yml b/.drone.yml index f2bfbc5..dc9711e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,4 +20,24 @@ steps: - cd Code - dotnet restore CI_CONSECO.sln - dotnet test CI_CONSECO.sln --no-restore - depends_on: [build] \ No newline at end of file + depends_on: [build] + - name: code-analysis + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 + commands: + - cd Code/ + - dotnet restore CI_CONSECO.sln + - dotnet sonarscanner begin /k:ConsEco /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet build CI_CONSECO.sln -c Release --no-restore + - dotnet test CI_CONSECO.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" + - dotnet publish CI_CONSECO.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + secrets: [ SECRET_SONAR_LOGIN ] + settings: + # accessible en ligne de commande par ${PLUGIN_SONAR_HOST} + sonar_host: https://codefirst.iut.uca.fr/sonar/ + # accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN} + sonar_token: + from_secret: SECRET_SONAR_LOGIN + depends_on: [tests] + \ No newline at end of file diff --git a/Code/IHM/App.xaml b/Code/IHM/App.xaml index 373f0ad..8ff84b3 100644 --- a/Code/IHM/App.xaml +++ b/Code/IHM/App.xaml @@ -2,8 +2,164 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:IHM" + xmlns:conv="clr-namespace:IHM.Converters" StartupUri="MainWindow.xaml"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Code/IHM/App.xaml.cs b/Code/IHM/App.xaml.cs index aff7815..ec2e22c 100644 --- a/Code/IHM/App.xaml.cs +++ b/Code/IHM/App.xaml.cs @@ -5,6 +5,8 @@ using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; +using System.Windows.Controls; +using System.Windows.Media; namespace IHM { @@ -13,5 +15,8 @@ namespace IHM /// public partial class App : Application { + public Navigator Navigator { get; private set; } = new Navigator(); + + } } diff --git a/Code/IHM/Converters/Func2WindowPartConverter.cs b/Code/IHM/Converters/Func2WindowPartConverter.cs new file mode 100644 index 0000000..d825da7 --- /dev/null +++ b/Code/IHM/Converters/Func2WindowPartConverter.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Controls; +using System.Windows.Data; + +namespace IHM.Converters +{ + public class Func2WindowPartConverter : IValueConverter + { + public object? Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + Func? windowPartCreator = value as Func; + if (windowPartCreator == null) + { + return null; + } + return windowPartCreator(); + } + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/Code/IHM/IHM.csproj b/Code/IHM/IHM.csproj index 7dc11f9..7e1d10d 100644 --- a/Code/IHM/IHM.csproj +++ b/Code/IHM/IHM.csproj @@ -7,4 +7,22 @@ true + + + + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + diff --git a/Code/IHM/MainWindow.xaml b/Code/IHM/MainWindow.xaml index d796ffe..3eb358b 100644 --- a/Code/IHM/MainWindow.xaml +++ b/Code/IHM/MainWindow.xaml @@ -8,5 +8,31 @@ Title="MainWindow" Height="450" Width="800"> + + + + + + + + + + + + + + + diff --git a/Code/IHM/UCAjouterBanque.xaml.cs b/Code/IHM/UCAjouterBanque.xaml.cs new file mode 100644 index 0000000..ac52266 --- /dev/null +++ b/Code/IHM/UCAjouterBanque.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCAjouterBanque.xaml + /// + public partial class UCAjouterBanque : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + public UCAjouterBanque() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_COMPTE); + } + } +} diff --git a/Code/IHM/UCAjouterCompte.xaml b/Code/IHM/UCAjouterCompte.xaml new file mode 100644 index 0000000..4460ea8 --- /dev/null +++ b/Code/IHM/UCAjouterCompte.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCAjouterCompte.xaml.cs b/Code/IHM/UCAjouterCompte.xaml.cs new file mode 100644 index 0000000..e8ed547 --- /dev/null +++ b/Code/IHM/UCAjouterCompte.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCAjouterCompte.xaml + /// + public partial class UCAjouterCompte : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCAjouterCompte() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_COMPTE); + } + } +} diff --git a/Code/IHM/UCAjouterEcheance.xaml b/Code/IHM/UCAjouterEcheance.xaml new file mode 100644 index 0000000..5a61dc1 --- /dev/null +++ b/Code/IHM/UCAjouterEcheance.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCAjouterEcheance.xaml.cs b/Code/IHM/UCAjouterEcheance.xaml.cs new file mode 100644 index 0000000..449d1a6 --- /dev/null +++ b/Code/IHM/UCAjouterEcheance.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCAjouterEcheance.xaml + /// + public partial class UCAjouterEcheance : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCAjouterEcheance() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_ECHEANCIER); + } + } +} diff --git a/Code/IHM/UCAjouterPlanification.xaml b/Code/IHM/UCAjouterPlanification.xaml new file mode 100644 index 0000000..a29b4b9 --- /dev/null +++ b/Code/IHM/UCAjouterPlanification.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCAjouterPlanification.xaml.cs b/Code/IHM/UCAjouterPlanification.xaml.cs new file mode 100644 index 0000000..8aada78 --- /dev/null +++ b/Code/IHM/UCAjouterPlanification.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCAjouterPlanification.xaml + /// + public partial class UCAjouterPlanification : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCAjouterPlanification() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_PLANIFICATION); + } + } +} diff --git a/Code/IHM/UCBienvenue.xaml b/Code/IHM/UCBienvenue.xaml new file mode 100644 index 0000000..9fa2dad --- /dev/null +++ b/Code/IHM/UCBienvenue.xaml @@ -0,0 +1,41 @@ + + + Bienvenue sur Cons'Eco + + + + La première application d'aide à la gestion de budget personnel ou en entreprise + + + + + + + + + + Vous pouvez créer un compte + + + + + + Ou vous connecter si vous en possédée déjà un + + + + + + diff --git a/Code/IHM/UCBienvenue.xaml.cs b/Code/IHM/UCBienvenue.xaml.cs new file mode 100644 index 0000000..939e30a --- /dev/null +++ b/Code/IHM/UCBienvenue.xaml.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCBienvenue.xaml + /// + public partial class UCBienvenue : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + public UCBienvenue() + { + InitializeComponent(); + DataContext = this; + } + + private void Button_Click_Inscription(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_INSCRIPTION); + } + + private void Button_Click_Connexion(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_CONNEXION); + } + } +} diff --git a/Code/IHM/UCCompte.xaml b/Code/IHM/UCCompte.xaml new file mode 100644 index 0000000..d670437 --- /dev/null +++ b/Code/IHM/UCCompte.xaml @@ -0,0 +1,42 @@ + + + + + + Compte + + + + + + + + + + + + + + + + + + diff --git a/Code/IHM/UCCompte.xaml.cs b/Code/IHM/UCCompte.xaml.cs new file mode 100644 index 0000000..7364dfb --- /dev/null +++ b/Code/IHM/UCCompte.xaml.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + + public partial class UCCompte : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + public UCCompte() + { + InitializeComponent(); + } + private void Button_Click_ModifSolde(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_MODIFSOLDE); + } + + private void Button_Click_Ajouter_Banque(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_AJOUTER_BANQUE); + } + + private void Button_Click_Supprimer_Banque(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_SUPPRIMER_BANQUE); + } + + private void Button_Click_Ajouter_Compte(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_AJOUTER_COMPTE); + } + + private void Button_Click_Supprimer_Compte(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_SUPPRIMER_COMPTE); + } + } + +} diff --git a/Code/IHM/UCConnexion.xaml b/Code/IHM/UCConnexion.xaml new file mode 100644 index 0000000..fec8188 --- /dev/null +++ b/Code/IHM/UCConnexion.xaml @@ -0,0 +1,71 @@ + + + + Connexion + Connectez vous à un compte déjà existant + + + + + + + + + + + + + + + + + + + Nom d'utilisateur + + Veuillez renseigner votre nom d'utilisateurs + + + + + + + + + + + Mot de passe + + + Veuillez renseigner votre mot de passe + + + + + + + + + + + + + diff --git a/Code/IHM/UCConnexion.xaml.cs b/Code/IHM/UCConnexion.xaml.cs new file mode 100644 index 0000000..1b8f659 --- /dev/null +++ b/Code/IHM/UCConnexion.xaml.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCConnexion.xaml + /// + public partial class UCConnexion : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + public UCConnexion() + { + InitializeComponent(); + } + + private void Button_Click_Acceuil(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_MAIN); + } + + private void Button_Click_Connection(object sender, RoutedEventArgs e) + { + ErrorPassword.Visibility = Visibility.Hidden; + Password.Background = new SolidColorBrush(Colors.White); + ErrorUserName.Visibility = Visibility.Hidden; + UserName.Background = new SolidColorBrush(Colors.White); + if (UserName.Text.ToString() == "") + { + ErrorUserName.Visibility = Visibility.Visible; + UserName.Background = new BrushConverter().ConvertFromString("#FF6347") as SolidColorBrush; + } + if (Password.Password.ToString() == "") + { + ErrorPassword.Visibility = Visibility.Visible; + Password.Background = new BrushConverter().ConvertFromString("#FF6347") as SolidColorBrush; + } + } + + private void Button_Click_Forget_Password(object sender, RoutedEventArgs e) + { + // TO DO + } + + } +} diff --git a/Code/IHM/UCEcheancier.xaml b/Code/IHM/UCEcheancier.xaml new file mode 100644 index 0000000..655e587 --- /dev/null +++ b/Code/IHM/UCEcheancier.xaml @@ -0,0 +1,43 @@ + + + Echeancier + + + + + + + + + + + + + + + diff --git a/Code/IHM/UCEffectuerCredit.xaml.cs b/Code/IHM/UCEffectuerCredit.xaml.cs new file mode 100644 index 0000000..537cf8b --- /dev/null +++ b/Code/IHM/UCEffectuerCredit.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UserControl1.xaml + /// + public partial class UCEffectuerCredit : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCEffectuerCredit() + { + InitializeComponent(); + } + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_OPERATION); + } + } +} diff --git a/Code/IHM/UCEffectuerDebit.xaml b/Code/IHM/UCEffectuerDebit.xaml new file mode 100644 index 0000000..eb98616 --- /dev/null +++ b/Code/IHM/UCEffectuerDebit.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCEffectuerDebit.xaml.cs b/Code/IHM/UCEffectuerDebit.xaml.cs new file mode 100644 index 0000000..80e7d5a --- /dev/null +++ b/Code/IHM/UCEffectuerDebit.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UserControl1.xaml + /// + public partial class UCEffectuerDebit : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCEffectuerDebit() + { + InitializeComponent(); + } + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_OPERATION); + } + } +} diff --git a/Code/IHM/UCInscription.xaml b/Code/IHM/UCInscription.xaml new file mode 100644 index 0000000..7cc2357 --- /dev/null +++ b/Code/IHM/UCInscription.xaml @@ -0,0 +1,94 @@ + + + + Inscription + Veuillez créer votre compte en retrant vos informations + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Code/IHM/UCInscription.xaml.cs b/Code/IHM/UCInscription.xaml.cs new file mode 100644 index 0000000..73dee6c --- /dev/null +++ b/Code/IHM/UCInscription.xaml.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCInscription.xaml + /// + public partial class UCInscription : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCInscription() + { + InitializeComponent(); + } + private void Button_Click_Acceuil(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_MAIN); + } + + private void Button_Click_Validation(object sender, RoutedEventArgs e) + { + // TO DO + } + } +} diff --git a/Code/IHM/UCModifSolde.xaml b/Code/IHM/UCModifSolde.xaml new file mode 100644 index 0000000..24ad5c2 --- /dev/null +++ b/Code/IHM/UCModifSolde.xaml @@ -0,0 +1,37 @@ + + + + Modification de votre solde + + + + + + + + + Nouveau solde + + + + + + + + + + diff --git a/Code/IHM/UCModifSolde.xaml.cs b/Code/IHM/UCModifSolde.xaml.cs new file mode 100644 index 0000000..f081079 --- /dev/null +++ b/Code/IHM/UCModifSolde.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour Page1.xaml + /// + public partial class UCModifSolde : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCModifSolde() + { + InitializeComponent(); + } + private void Button_Click_Compte(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_COMPTE); + } + } +} diff --git a/Code/IHM/UCOperation.xaml b/Code/IHM/UCOperation.xaml new file mode 100644 index 0000000..46f6016 --- /dev/null +++ b/Code/IHM/UCOperation.xaml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Code/IHM/UCRetirerOperation.xaml.cs b/Code/IHM/UCRetirerOperation.xaml.cs new file mode 100644 index 0000000..13319a6 --- /dev/null +++ b/Code/IHM/UCRetirerOperation.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UserControl2.xaml + /// + public partial class UCRetirerOperation : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCRetirerOperation() + { + InitializeComponent(); + } + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_OPERATION); + } + } +} diff --git a/Code/IHM/UCSupprimerBanque.xaml b/Code/IHM/UCSupprimerBanque.xaml new file mode 100644 index 0000000..87c694b --- /dev/null +++ b/Code/IHM/UCSupprimerBanque.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCSupprimerBanque.xaml.cs b/Code/IHM/UCSupprimerBanque.xaml.cs new file mode 100644 index 0000000..763c752 --- /dev/null +++ b/Code/IHM/UCSupprimerBanque.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCSupprimerBanque.xaml + /// + public partial class UCSupprimerBanque : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + public UCSupprimerBanque() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_COMPTE); + } + } +} diff --git a/Code/IHM/UCSupprimerCompte.xaml b/Code/IHM/UCSupprimerCompte.xaml new file mode 100644 index 0000000..38ec1d4 --- /dev/null +++ b/Code/IHM/UCSupprimerCompte.xaml @@ -0,0 +1,17 @@ + + + + + + + diff --git a/Code/IHM/UCSupprimerCompte.xaml.cs b/Code/IHM/UCSupprimerCompte.xaml.cs new file mode 100644 index 0000000..9402e27 --- /dev/null +++ b/Code/IHM/UCSupprimerCompte.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCSupprimerCompte.xaml + /// + public partial class UCSupprimerCompte : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCSupprimerCompte() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_COMPTE); + } + } +} diff --git a/Code/IHM/UCSupprimerEcheance.xaml b/Code/IHM/UCSupprimerEcheance.xaml new file mode 100644 index 0000000..a5f5e43 --- /dev/null +++ b/Code/IHM/UCSupprimerEcheance.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCSupprimerEcheance.xaml.cs b/Code/IHM/UCSupprimerEcheance.xaml.cs new file mode 100644 index 0000000..cbdcfea --- /dev/null +++ b/Code/IHM/UCSupprimerEcheance.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCSupprimerEcheance.xaml + /// + public partial class UCSupprimerEcheance : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCSupprimerEcheance() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_ECHEANCIER); + } + } +} diff --git a/Code/IHM/UCSupprimerOperation.xaml b/Code/IHM/UCSupprimerOperation.xaml new file mode 100644 index 0000000..6ff42ec --- /dev/null +++ b/Code/IHM/UCSupprimerOperation.xaml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/Code/IHM/UCSupprimerOperation.xaml.cs b/Code/IHM/UCSupprimerOperation.xaml.cs new file mode 100644 index 0000000..7b8e9ce --- /dev/null +++ b/Code/IHM/UCSupprimerOperation.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UserControl3.xaml + /// + public partial class UCSupprimerOperation : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCSupprimerOperation() + { + InitializeComponent(); + } + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_OPERATION); + } + } +} diff --git a/Code/IHM/UCSupprimerPlanification.xaml b/Code/IHM/UCSupprimerPlanification.xaml new file mode 100644 index 0000000..5593411 --- /dev/null +++ b/Code/IHM/UCSupprimerPlanification.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/Code/IHM/UCSupprimerPlanification.xaml.cs b/Code/IHM/UCSupprimerPlanification.xaml.cs new file mode 100644 index 0000000..2ea2934 --- /dev/null +++ b/Code/IHM/UCSupprimerPlanification.xaml.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCSupprimerPlanification.xaml + /// + public partial class UCSupprimerPlanification : UserControl + { + public Navigator Nav => (App.Current as App).Navigator; + + public UCSupprimerPlanification() + { + InitializeComponent(); + } + + private void Button_Click_Retour(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_PLANIFICATION); + } + } +} diff --git a/Code/IHM/UCTableauDeBord.xaml b/Code/IHM/UCTableauDeBord.xaml new file mode 100644 index 0000000..51c72e1 --- /dev/null +++ b/Code/IHM/UCTableauDeBord.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/Code/IHM/UCTableauDeBord.xaml.cs b/Code/IHM/UCTableauDeBord.xaml.cs new file mode 100644 index 0000000..9bcbd8a --- /dev/null +++ b/Code/IHM/UCTableauDeBord.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace IHM +{ + /// + /// Logique d'interaction pour UCTableauDeBord.xaml + /// + public partial class UCTableauDeBord : UserControl + { + public UCTableauDeBord() + { + InitializeComponent(); + } + } +} diff --git a/Code/IHM/images/fond.jpg b/Code/IHM/images/fond.jpg new file mode 100644 index 0000000..014a6d6 Binary files /dev/null and b/Code/IHM/images/fond.jpg differ diff --git a/Code/IHM/images/fond2.png b/Code/IHM/images/fond2.png new file mode 100644 index 0000000..51886cd Binary files /dev/null and b/Code/IHM/images/fond2.png differ diff --git a/Code/IHM/images/logo.png b/Code/IHM/images/logo.png new file mode 100644 index 0000000..7ab20ec Binary files /dev/null and b/Code/IHM/images/logo.png differ