Modification encapsulation
continuous-integration/drone/push Build is failing Details

connexion
Lucas EVARD 2 years ago
parent 1c4ec437f5
commit 474726bbd4

@ -7,7 +7,12 @@
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Button x:Name="test2" Content="Button" HorizontalAlignment="Left" Margin="411,167,0,0" VerticalAlignment="Top" Click="test_Click"/>
<TextBlock Name="idpers" Text="null"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<TextBox Name="id" Height="100" Width="200" Text="OUIOUIOUI"/>
<TextBox Name="mdp" Height="100" Width="200" Text="OUIOUIOUI"/>
</StackPanel>
<Button x:Name="test2" Content="Button" HorizontalAlignment="Center" Margin="0,320,0,0" VerticalAlignment="Top" Click="test_Click"/>
</Grid>

@ -42,9 +42,13 @@ namespace IHM
private void test_Click(object sender, RoutedEventArgs e)
{
Manager.LoadInscrit("stef@.com", "teststef");
testSelect();
/* testSuppression();*/
Manager.LoadInscrit(id.Text,mdp.Text);
if (Manager.SelectedInscrits != null)
{
idpers.Text = Manager.SelectedInscrits;
testSelect();
}
else idpers.Text = "";
}
}

@ -9,6 +9,7 @@ using Npgsql;
using Model;
using System.IO;
using System.Diagnostics;
using System.Windows;
namespace LinqToPgSQL
{
@ -35,15 +36,14 @@ namespace LinqToPgSQL
return resultat;
}
catch (Exception ex)
{ Console.Out.WriteLine("A GERER");
return null;
{
MessageBox.Show("Utilisateur inconnu");
dr.Close();
return null;
}
dr.Close();
}
/*Revoir la BDD, probleme de clé étrangère de devise*/
public async void SupprimerInscritBdd(Inscrit i)
{

@ -11,7 +11,7 @@ namespace Model
public string Nom { get; private set; }
public string UrlSite { get; private set; }
public string UrlLogo { get; private set; }
public List<Compte> ListeDesComptes { get; private set; } = new List<Compte>();
private List<Compte> ListeDesComptes { get; set; } = new List<Compte>();
public Banque(string nom, string urlSite, string urlLogo)
{

@ -48,7 +48,7 @@ namespace Model
public string Mdp { get; private set; }
public double SoldeTotal { get; private set; }
public Devises Dev { get; private set; }
public List<Banque> LesBanques { get; private set; } = new List<Banque>();
private List<Banque> LesBanques { get; set; } = new List<Banque>();

Loading…
Cancel
Save