You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ConsEco/Sources/Modele/BanqueInscrit.cs

33 lines
795 B

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
2 years ago
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
2 years ago
public class BanqueInscrit : INotifyPropertyChanged
{
2 years ago
public event PropertyChangedEventHandler PropertyChanged;
public string Name { get; set; }
public int Id { get; set; }
[JsonConstructor]
2 years ago
public BanqueInscrit(int id, string nomBanque)
{
Id = id;
2 years ago
Name = nomBanque;
}
2 years ago
void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
public override string ToString()
{
2 years ago
return Name + " " + Id;
}
}
}