add opposition mechanic

pull/69/head
Titouan LOUVET 2 years ago
parent 8ad11591b5
commit 6b600b7c79

@ -22,6 +22,7 @@ public partial class TransactionsPage : ContentPage
async void Objection_Clicked(System.Object sender, System.EventArgs e) async void Objection_Clicked(System.Object sender, System.EventArgs e)
{ {
Mgr.SelectedTransaction.IsOpposition = true;
await Shell.Current.Navigation.PopAsync(); await Shell.Current.Navigation.PopAsync();
} }

@ -115,6 +115,11 @@ namespace Model
[DataMember] [DataMember]
private DateTime date; private DateTime date;
[DataMember(Order = 7)]
public bool IsOpposition { get; set; }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Transaction"/> class. /// Initializes a new instance of the <see cref="Transaction"/> class.
/// </summary> /// </summary>
@ -131,6 +136,7 @@ namespace Model
Id = id; Id = id;
InvolvedAccounts = involvedAccounts; InvolvedAccounts = involvedAccounts;
Date = date; Date = date;
IsOpposition = false;
} }
public void ChangeCategory(string newCateg) public void ChangeCategory(string newCateg)

Loading…
Cancel
Save