ajout de tout les UC lié a planification et liaison via le navigator

Navigator
Vincent ASTOLFI 2 years ago
parent d5a1ff6844
commit 28be2e3b8e

@ -84,7 +84,7 @@
<Setter Property="Padding" Value="10"/>
<Setter Property="Margin" Value="60,0,0,0"/>
<Setter Property="Height" Value="25"/>
<Setter Property="Width" Value="150"/>
<Setter Property="Width" Value="200"/>
</Style>

@ -44,7 +44,7 @@ namespace IHM
private void Button_Click_Plannification(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_PLANNIFICATION);
Nav.NavigateTo(Navigator.PART_PLANIFICATION);
}
}
}

@ -12,23 +12,27 @@ namespace IHM
{
public class Navigator : INotifyPropertyChanged
{
public const string PART_OPERATION = "Opération";
public const string PART_PLANNIFICATION = "Plannification";
public const string PART_MAIN = "Main";
public const string PART_CONNEXION = "Connexion";
public const string PART_INSCRIPTION = "Inscription";
public const string PART_MODIFSOLDE = "ModifSolde";
public const string PART_COMPTE = "Compte";
public const string PART_AJOUTER_BANQUE = "Ajouter une banque";
public const string PART_SUPPRIMER_BANQUE = "Supprimer une banque";
public const string PART_AJOUTER_COMPTE = "Ajouter une compte";
public const string PART_SUPPRIMER_COMPTE = "Supprimer un compte";
public const string PART_MODIFSOLDE = "ModifSolde";
public const string PART_OPERATION = "Opération";
public const string PART_ECHEANCIER = "Echéancier";
public const string PART_AJOUTER_ECHEANCE = "Enregistrer une échéance";
public const string PART_SUPPRIMER_ECHEANCE = "Supprimer une échéance";
public const string PART_PLANIFICATION = "Planification";
public const string PART_AJOUTER_PLANIFICATION = "Ajouter une planification";
public const string PART_SUPPRIMER_PLANIFICATION = "Supprimer une planification";
public ReadOnlyDictionary<string, Func<UserControl>> WindowPart { get; private set; }
Dictionary<string, Func<UserControl>> windowPart { get; set; } = new Dictionary<string, Func<UserControl>>
@ -38,7 +42,7 @@ namespace IHM
[PART_COMPTE] = () => new UCCompte(),
[PART_OPERATION] = () => new UCOperation(),
[PART_ECHEANCIER] = () => new UCEcheancier(),
[PART_PLANNIFICATION] = () => new UCPlannification(),
[PART_PLANIFICATION] = () => new UCPlannification(),
[PART_INSCRIPTION] = () => new UCInscription(),
[PART_MODIFSOLDE] = () => new UCModifSolde(),
[PART_AJOUTER_BANQUE] = () => new UCAjouterBanque(),
@ -47,6 +51,8 @@ namespace IHM
[PART_SUPPRIMER_COMPTE] = () => new UCSupprimerCompte(),
[PART_AJOUTER_ECHEANCE] = () => new UCAjouterEcheance(),
[PART_SUPPRIMER_ECHEANCE] = () => new UCSupprimerEcheance(),
[PART_AJOUTER_PLANIFICATION] = () => new UCAjouterPlanification(),
[PART_SUPPRIMER_PLANIFICATION] = () => new UCSupprimerPlanification(),
};

@ -9,7 +9,7 @@
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<TextBlock Text="A FAIRE" FontSize="40"/>
<Button Style="{StaticResource GreenButtonRessource}">
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
<TextBlock Text="Retour"/>
</Button>
</DockPanel>

@ -20,9 +20,16 @@ namespace IHM
/// </summary>
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);
}
}
}

@ -8,7 +8,7 @@
d:DesignHeight="450" d:DesignWidth="800"
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<Button Style="{StaticResource GreenButtonRessource}" Content="Enregistrer une plannification"/>
<Button Style="{StaticResource GreenButtonRessource}" Content="supprimer une plannification"/>
<Button Click="Button_Click_Ajouter_Planification" Style="{StaticResource GreenButtonRessource}" Content="Enregistrer une plannification"/>
<Button Click="Button_Click_Supprimer_Planification" Style="{StaticResource GreenButtonRessource}" Content="supprimer une plannification"/>
</DockPanel>
</UserControl>

@ -20,9 +20,21 @@ namespace IHM
/// </summary>
public partial class UCPlannification : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCPlannification()
{
InitializeComponent();
}
private void Button_Click_Ajouter_Planification(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_AJOUTER_PLANIFICATION);
}
private void Button_Click_Supprimer_Planification(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_SUPPRIMER_PLANIFICATION);
}
}
}

@ -0,0 +1,16 @@
<UserControl x:Class="IHM.UCSupprimerPlanification"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IHM"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<TextBlock Text="A FAIRE" FontSize="40"/>
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
<TextBlock Text="Retour"/>
</Button>
</DockPanel>
</UserControl>

@ -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
{
/// <summary>
/// Logique d'interaction pour UCSupprimerPlanification.xaml
/// </summary>
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);
}
}
}
Loading…
Cancel
Save