|
|
@ -3,11 +3,13 @@ using System.Collections.Generic;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Banquale.Model
|
|
|
|
namespace Banquale.Model
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
[DataContract]
|
|
|
|
public class Account : INotifyPropertyChanged
|
|
|
|
public class Account : INotifyPropertyChanged
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
@ -17,9 +19,10 @@ namespace Banquale.Model
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
public double Balance
|
|
|
|
public double Balance
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get => Balance;
|
|
|
|
get => balance;
|
|
|
|
set
|
|
|
|
set
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (balance == value)
|
|
|
|
if (balance == value)
|
|
|
@ -31,7 +34,7 @@ namespace Banquale.Model
|
|
|
|
private double balance;
|
|
|
|
private double balance;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
public string Name
|
|
|
|
public string Name
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get => name;
|
|
|
|
get => name;
|
|
|
@ -45,6 +48,8 @@ namespace Banquale.Model
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private string name;
|
|
|
|
private string name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
public string IBAN
|
|
|
|
public string IBAN
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get => iban;
|
|
|
|
get => iban;
|
|
|
@ -66,7 +71,8 @@ namespace Banquale.Model
|
|
|
|
IBAN = iban;
|
|
|
|
IBAN = iban;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Transactions> TransactionsList { get; set; }
|
|
|
|
[DataMember]
|
|
|
|
|
|
|
|
public List<Transactions> TransactionsList { get; set; } = new List<Transactions>();
|
|
|
|
|
|
|
|
|
|
|
|
//public bool DoTransactions(string name, string IBAN, float sum)
|
|
|
|
//public bool DoTransactions(string name, string IBAN, float sum)
|
|
|
|
//{
|
|
|
|
//{
|
|
|
@ -97,7 +103,7 @@ namespace Banquale.Model
|
|
|
|
|
|
|
|
|
|
|
|
internal static void AskForHelp(Entry request, Entry subject, Editor message)
|
|
|
|
internal static void AskForHelp(Entry request, Entry subject, Editor message)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Debug.WriteLine(request);
|
|
|
|
Debug.WriteLine(request.Text);
|
|
|
|
Debug.WriteLine(subject);
|
|
|
|
Debug.WriteLine(subject);
|
|
|
|
Debug.WriteLine(message);
|
|
|
|
Debug.WriteLine(message);
|
|
|
|
Debug.WriteLine("Help button pressed !");
|
|
|
|
Debug.WriteLine("Help button pressed !");
|
|
|
|