modification vue window

UI_Windows
Nicolas MAYE 2 years ago
parent 651014a924
commit 4f180027f3

@ -6,6 +6,7 @@ namespace IHM
public partial class App : Application public partial class App : Application
{ {
public Manager Manager { get; set; } = new Manager(new PersLinqToPgSQL()); public Manager Manager { get; set; } = new Manager(new PersLinqToPgSQL());
public App() public App()
{ {
InitializeComponent(); InitializeComponent();

@ -11,6 +11,8 @@ namespace IHM
{ {
public Manager Mgr => (App.Current as App).Manager; public Manager Mgr => (App.Current as App).Manager;
public AppShellDesktop() public AppShellDesktop()
{ {
InitializeComponent(); InitializeComponent();

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.CV_DeletePlanification">
<Grid BackgroundColor="{StaticResource Tertiary}">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Label Text="Supprimer une planification" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}"/>
<Label Text="Nom" Grid.Column="1" Grid.Row="2" Style="{StaticResource TitreWindows}" Margin="20"/>
<Label Text="Montant" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" Margin="20"/>
<Label Text="Type" Grid.Column="1" Grid.Row="4" Style="{StaticResource TitreWindows}" Margin="20"/>
<Label Text="Date" Grid.Column="1" Grid.Row="5" Style="{StaticResource TitreWindows}" Margin="20"/>
<ListView ItemsSource="{Binding }">
</ListView>
<Button Text="ANNULER" Clicked="Button_Clicked" Grid.Column="1" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
<Button Text="VALIDER" Clicked="Button_Clicked_1" Grid.Column="3" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
</Grid>
</ContentView>

@ -0,0 +1,19 @@
namespace IHM.Desktop;
public partial class CV_DeletePlanification : ContentView
{
public CV_DeletePlanification()
{
InitializeComponent();
}
private void Button_Clicked(object sender, EventArgs e)
{
}
private void Button_Clicked_1(object sender, EventArgs e)
{
}
}

@ -17,7 +17,7 @@
<Button Text="Planifier une échéance" BackgroundColor="{StaticResource Primary}" TextColor="{StaticResource Secondary}" Grid.Column="0" Grid.Row="0" Clicked="Button_Clicked" ></Button> <Button Text="Planifier une échéance" BackgroundColor="{StaticResource Primary}" TextColor="{StaticResource Secondary}" Grid.Column="0" Grid.Row="0" Clicked="Button_Clicked" ></Button>
<Button Text="Supprimer une échéance" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource Secondary}" Grid.Column="1" Grid.Row="0" Clicked="Button_Clicked_1"></Button> <Button Text="Supprimer une planification" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource Secondary}" Grid.Column="1" Grid.Row="0" Clicked="Button_Clicked_1"></Button>
<ContentView Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="15" x:Name="windowAjout"> <ContentView Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="15" x:Name="windowAjout">
<Grid BackgroundColor="{StaticResource Yellow300Accent}"> <Grid BackgroundColor="{StaticResource Yellow300Accent}">
@ -42,6 +42,7 @@
<Label Text="Planification"/> <Label Text="Planification"/>
</Grid> </Grid>
</ContentView> </ContentView>

@ -5,13 +5,15 @@ namespace IHM.Desktop;
public partial class CV_Planification : ContentView public partial class CV_Planification : ContentView
{ {
public Manager Mgr => (App.Current as App).Manager;
public CV_Planification() public CV_Planification()
{ {
InitializeComponent(); InitializeComponent();
} }
private void Button_Clicked(object sender, EventArgs e) private void Button_Clicked(object sender, EventArgs e)
@ -21,6 +23,6 @@ public partial class CV_Planification : ContentView
private void Button_Clicked_1(object sender, EventArgs e) private void Button_Clicked_1(object sender, EventArgs e)
{ {
windowAjout.Content = new CV_DeletePlanification();
} }
} }

@ -23,6 +23,9 @@ namespace Model
} }
} }
} }
private Banque selectedBanque; private Banque selectedBanque;
void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
@ -32,6 +35,7 @@ namespace Model
Pers = persistance; Pers = persistance;
} }
public void SupprimerInscritBdd(Inscrit i) public void SupprimerInscritBdd(Inscrit i)
{ {
Pers.SupprimerInscritBdd(i); Pers.SupprimerInscritBdd(i);
@ -76,6 +80,8 @@ namespace Model
{ {
return hash.IsEqualHash(mdpBdd, mdpSent); return hash.IsEqualHash(mdpBdd, mdpSent);
} }
} }
} }

Loading…
Cancel
Save