Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Nazwiska
- {
- class Osoba : INotifyPropertyChanged
- {
- private string _Imie;
- private string _Nazwisko;
- private string _Adres;
- private string _Image;
- public string Imie
- {
- get { return _Imie; }
- set
- {
- _Imie = value;
- PropertyChanged(this, new PropertyChangedEventArgs("Imie"));
- }
- }
- public string Nazwisko
- {
- get { return _Nazwisko; }
- set
- {
- _Nazwisko = value;
- PropertyChanged(this, new PropertyChangedEventArgs("Nazwisko"));
- }
- }
- public string Adres
- {
- get { return _Adres; }
- set
- {
- _Adres = value;
- PropertyChanged(this, new PropertyChangedEventArgs("Miasto"));
- }
- }
- public string Image
- {
- get { return _Image; }
- set
- {
- _Image = value;
- PropertyChanged(this, new PropertyChangedEventArgs("Image"));
- }
- }
- public Osoba(string imie, string nazwisko, string adres,string image)
- {
- this.Imie = imie;
- this.Nazwisko = nazwisko;
- this.Adres = adres;
- this.Image = image;
- }
- public event PropertyChangedEventHandler PropertyChanged = delegate { };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement