Merge branch 'Binding' of https://codefirst.iut.uca.fr/git/ConsEcoTeam/ConsEco into Binding
continuous-integration/drone/push Build is failing Details

Binding
Nicolas MAYE 2 years ago
commit d9728cf0fc

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -91,7 +91,7 @@
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center"/> VerticalOptions="Center"/>
<Label Grid.Column="1" Text="{Binding DateOperation}" <Label Grid.Column="1" Text="{Binding DateOperation, StringFormat='{0:d}'}"
TextColor="{StaticResource Secondary}" TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Body" FontAttributes="Bold" FontSize="Body"
HorizontalOptions="Center" HorizontalOptions="Center"

@ -94,7 +94,7 @@
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center"/> VerticalOptions="Center"/>
<Label Grid.Column="1" Text="{Binding DateOperation}" <Label Grid.Column="1" Text="{Binding DateOperation, StringFormat='{0:d}'}"
TextColor="{StaticResource Secondary}" TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Body" FontAttributes="Bold" FontSize="Body"
HorizontalOptions="Center" HorizontalOptions="Center"

@ -108,7 +108,7 @@
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center"/> VerticalOptions="Center"/>
<Label Grid.Column="1" Text="{Binding DateOperation}" <Label Grid.Column="1" Text="{Binding DateOperation, StringFormat='{0:d}'}"
TextColor="{StaticResource Secondary}" TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Body" FontAttributes="Bold" FontSize="Body"
HorizontalOptions="Center" HorizontalOptions="Center"

@ -82,7 +82,7 @@
Margin="50,0,0,0" Margin="50,0,0,0"
FontAttributes="Italic"/> FontAttributes="Italic"/>
<Label Grid.Row="0" Grid.Column="2" <Label Grid.Row="0" Grid.Column="2"
Text="{Binding DateOperation}"/> Text="{Binding DateOperation, StringFormat='{0:d}'}"/>
<Label Grid.Row="1" Grid.Column="2" <Label Grid.Row="1" Grid.Column="2"
Text="{Binding Montant}" Text="{Binding Montant}"
FontAttributes="Bold" FontAttributes="Bold"

@ -34,7 +34,7 @@
FontAttributes="Italic" FontAttributes="Italic"
Margin="50,0,0,0"/> Margin="50,0,0,0"/>
<Label Grid.Row="0" Grid.Column="2" <Label Grid.Row="0" Grid.Column="2"
Text="{Binding DateOperation}"/> Text="{Binding DateOperation, StringFormat='{0:d}'}"/>
<Label Grid.Row="1" Grid.Column="2" <Label Grid.Row="1" Grid.Column="2"
Text="{Binding Montant}" Text="{Binding Montant}"
FontAttributes="Bold" FontAttributes="Bold"

@ -35,7 +35,7 @@
FontAttributes="Italic" FontAttributes="Italic"
Margin="50,0,0,0"/> Margin="50,0,0,0"/>
<Label Grid.Row="0" Grid.Column="2" <Label Grid.Row="0" Grid.Column="2"
Text="{Binding DateOperation}"/> Text="{Binding DateOperation, StringFormat='{0:d}'}"/>
<Label Grid.Row="1" Grid.Column="2" <Label Grid.Row="1" Grid.Column="2"
Text="{Binding Montant}" Text="{Binding Montant}"
FontAttributes="Bold" FontAttributes="Bold"

@ -23,11 +23,11 @@ namespace Model
public TagOperation Tag { get; private set; } public TagOperation Tag { get; private set; }
[JsonConstructor] [JsonConstructor]
public Echeance(string nom, double montant, DateTime dateOperation, MethodePayement methodePayement, TagOperation tag, bool isDebit = true) public Echeance(string nom, double montant, DateTime dateO, MethodePayement methodePayement, TagOperation tag, bool isDebit = true)
{ {
Nom = nom; Nom = nom;
Montant = montant; Montant = montant;
DateOperation = dateOperation; DateOperation = dateO;
ModePayement = methodePayement; ModePayement = methodePayement;
IsDebit = isDebit; IsDebit = isDebit;
Tag = tag; Tag = tag;

@ -94,19 +94,7 @@ namespace Model
private IList<BanqueInscrit> listeDesBanques = new List<BanqueInscrit>(); private IList<BanqueInscrit> listeDesBanques = new List<BanqueInscrit>();
//private IList<BanqueInscrit> listeDesBanques = new List<BanqueInscrit>(); //private IList<BanqueInscrit> listeDesBanques = new List<BanqueInscrit>();
/*public ReadOnlyCollection<BanqueInscrit> AllBanque public ReadOnlyCollection<BanqueInscrit> AllBanque { get; private set; }
{
get => allBanque;
set
{
if (allBanque != value)
{
allBanque = value;
OnPropertyChanged(nameof(AllBanque));
}
}
}
private ReadOnlyCollection<BanqueInscrit> allBanque;*/
public List<Compte> ListeDesComptes public List<Compte> ListeDesComptes
{ {
@ -122,13 +110,13 @@ namespace Model
} }
private List<Compte> listeDesComptes = new List<Compte>(); private List<Compte> listeDesComptes = new List<Compte>();
//public ReadOnlyCollection<Compte> AllCompte { get; private set; } public ReadOnlyCollection<Compte> AllCompte { get; private set; }
public Manager(IPersistanceManager persistance) public Manager(IPersistanceManager persistance)
{ {
//AllBanque = new ReadOnlyCollection<BanqueInscrit>(listeDesBanques); AllBanque = new ReadOnlyCollection<BanqueInscrit>(ListeDesBanques);
//AllCompte = new ReadOnlyCollection<Compte>(listeDesComptes); AllCompte = new ReadOnlyCollection<Compte>(ListeDesComptes);
Pers = persistance; Pers = persistance;
} }

@ -38,11 +38,11 @@ namespace Model
public bool FromBanque { get; private set; } public bool FromBanque { get; private set; }
[JsonConstructor] [JsonConstructor]
public Operation(string nom, double montant, DateTime dateOperation, MethodePayement methodePayement, TagOperation tag, bool fromBanque, bool isDebit=true) public Operation(string nom, double montant, DateTime dateO, MethodePayement methodePayement, TagOperation tag, bool fromBanque, bool isDebit=true)
{ {
Nom = nom; Nom = nom;
Montant = montant; Montant = montant;
DateOperation = dateOperation; DateOperation = dateO;
ModePayement = methodePayement; ModePayement = methodePayement;
IsDebit = isDebit; IsDebit = isDebit;
Tag = tag; Tag = tag;

@ -24,11 +24,11 @@ namespace Model
public TagOperation Tag { get; private set; } public TagOperation Tag { get; private set; }
[JsonConstructor] [JsonConstructor]
public Planification(string nom, double montant, DateTime dateOperation, MethodePayement methodePayement, TagOperation tag, bool isDebit = true) public Planification(string nom, double montant, DateTime dateO, MethodePayement methodePayement, TagOperation tag, bool isDebit = true)
{ {
Nom = nom; Nom = nom;
Montant = montant; Montant = montant;
DateOperation = dateOperation; DateOperation = dateO;
ModePayement = methodePayement; ModePayement = methodePayement;
IsDebit = isDebit; IsDebit = isDebit;
Tag = tag; Tag = tag;

Loading…
Cancel
Save