Compare commits
No commits in common. 'master' and 'PatchDeserialisation' have entirely different histories.
master
...
PatchDeser
Before Width: | Height: | Size: 52 KiB |
@ -1,58 +1,17 @@
|
||||
using Model;
|
||||
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_AddPlanification : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_AddPlanification()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
{
|
||||
string nom = name.Text;
|
||||
double Montant = Double.Parse(montant.Text);
|
||||
string Type = type.Text;
|
||||
string Tag = tag.Text;
|
||||
DateTime Date = date.Date;
|
||||
TagOperation to2 = new TagOperation();
|
||||
MethodePayement mp2 = new MethodePayement();
|
||||
|
||||
|
||||
foreach (string mp in Enum.GetNames(typeof(MethodePayement)))
|
||||
{
|
||||
if (Equals(Type, mp))
|
||||
{
|
||||
mp2 = (MethodePayement)Enum.Parse(typeof(MethodePayement), Type);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
foreach (string to in Enum.GetNames(typeof(TagOperation)))
|
||||
{
|
||||
if (Equals(Tag, to))
|
||||
private void annuler_button(object sender, EventArgs e)
|
||||
{
|
||||
to2 = (TagOperation)Enum.Parse(typeof(TagOperation), Tag);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Model.Planification planification = new(nom, Montant, Date, mp2, to2,false);
|
||||
|
||||
Mgr.ajouterPlanification(Mgr.SelectedCompte, planification);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
}
|
||||
}
|
@ -1,29 +1,19 @@
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_DeletePlanification : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_DeletePlanification()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
var s = recup.SelectedItem;
|
||||
Model.Planification planification = (Model.Planification)s;
|
||||
Mgr.supprimerPlanification(Mgr.SelectedCompte, planification);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
}
|
@ -1,35 +1,19 @@
|
||||
|
||||
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_EnregistrerEcheance : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_EnregistrerEcheance()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
var s = recup.SelectedItem;
|
||||
Echeance ech = (Echeance)s;
|
||||
Operation operation = new Operation(ech.Nom, ech.Montant, ech.DateOperation, ech.ModePayement,ech.Tag,ech.IsDebit);
|
||||
|
||||
Mgr.effectuerOperation(Mgr.SelectedCompte, operation);
|
||||
Mgr.supprimerEcheance(Mgr.SelectedCompte, ech);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
}
|
||||
}
|
@ -1,30 +1,9 @@
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_HomePage : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_HomePage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
Mgr.LoadBanqueDispo();
|
||||
BindingContext = Mgr;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void ImportOFX_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void AddBanque_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,21 +1,9 @@
|
||||
|
||||
using Model;
|
||||
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_Log : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_Log()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
BindingContext = Mgr.User;
|
||||
}
|
||||
|
||||
private void Button_Quitter(object sender, EventArgs e)
|
||||
{
|
||||
Microsoft.Maui.Controls.Application.Current?.CloseWindow(Microsoft.Maui.Controls.Application.Current.MainPage.Window);
|
||||
}
|
||||
}
|
@ -1,16 +1,9 @@
|
||||
namespace IHM.Desktop;
|
||||
using Model;
|
||||
|
||||
public partial class CV_Statistiques : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_Statistiques()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
}
|
@ -1,34 +1,19 @@
|
||||
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_SupprimerEcheance : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
|
||||
public CV_SupprimerEcheance()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
var s = recup.SelectedItem;
|
||||
Echeance echeance = (Echeance)s;
|
||||
Mgr.supprimerEcheance(Mgr.SelectedCompte, echeance);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
}
|
@ -1,64 +1,19 @@
|
||||
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_credit : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_credit()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
{
|
||||
string nom = name.Text;
|
||||
double Montant = Double.Parse(montant.Text);
|
||||
string Type = type.Text;
|
||||
string Tag = tag.Text;
|
||||
DateTime Date = date.Date;
|
||||
TagOperation to2 = new TagOperation();
|
||||
MethodePayement mp2 = new MethodePayement();
|
||||
|
||||
|
||||
foreach (string mp in Enum.GetNames(typeof(MethodePayement)))
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
if (Equals(Type, mp))
|
||||
{
|
||||
mp2 = (MethodePayement) Enum.Parse(typeof(MethodePayement), Type);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
foreach (string to in Enum.GetNames(typeof(TagOperation)))
|
||||
{
|
||||
if (Equals(Tag, to))
|
||||
{
|
||||
to2 = (TagOperation)Enum.Parse(typeof(TagOperation), Tag);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Operation operation = new Operation(nom, Montant, Date, mp2, to2, false, false) ;
|
||||
Mgr.effectuerOperation(Mgr.SelectedCompte, operation);
|
||||
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -1,56 +1,19 @@
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_debit : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_debit()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
string nom = name.Text;
|
||||
double Montant = Double.Parse(montant.Text);
|
||||
string Type = type.Text;
|
||||
string Tag = tag.Text;
|
||||
DateTime Date = date.Date;
|
||||
TagOperation to2 = new TagOperation();
|
||||
MethodePayement mp2 = new MethodePayement();
|
||||
|
||||
|
||||
foreach (string mp in Enum.GetNames(typeof(MethodePayement)))
|
||||
{
|
||||
if (Equals(Type, mp))
|
||||
{
|
||||
mp2 = (MethodePayement)Enum.Parse(typeof(MethodePayement), Type);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
foreach (string to in Enum.GetNames(typeof(TagOperation)))
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
if (Equals(Tag, to))
|
||||
{
|
||||
to2 = (TagOperation)Enum.Parse(typeof(TagOperation), Tag);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Operation operation = new Operation(nom, Montant, Date, mp2, to2, false, true);
|
||||
Mgr.effectuerOperation(Mgr.SelectedCompte, operation);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
}
|
||||
}
|
@ -1,30 +1,19 @@
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_retirer : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_retirer()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
var s = recup.SelectedItem;
|
||||
Operation operation = (Operation)s;
|
||||
Mgr.supprimerOperation(Mgr.SelectedCompte, operation);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
}
|
@ -1,29 +1,19 @@
|
||||
using Model;
|
||||
|
||||
namespace IHM.Desktop;
|
||||
|
||||
public partial class CV_supprimerOp : ContentView
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public CV_supprimerOp()
|
||||
{
|
||||
InitializeComponent();
|
||||
Mgr.LoadBanque();
|
||||
Mgr.LoadCompte();
|
||||
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
|
||||
private void Button_Annuler(object sender, EventArgs e)
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
|
||||
private void Button_Valider(object sender, EventArgs e)
|
||||
private void Button_Clicked_1(object sender, EventArgs e)
|
||||
{
|
||||
var s = recup.SelectedItem;
|
||||
Operation operation = (Operation)s;
|
||||
Mgr.supprimerOperation(Mgr.SelectedCompte,operation);
|
||||
Navigation.PushAsync(new Dashboard());
|
||||
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 548 B |
Before Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 668 B |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 963 B |
Before Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 211 KiB |
Before Width: | Height: | Size: 240 KiB |