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)
{
Mgr.SelectedTransaction.IsOpposition = true;
await Shell.Current.Navigation.PopAsync();
}

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

Loading…
Cancel
Save