Advertisement
Guest User

OSOBA

a guest
Mar 29th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace Nazwiska
  9. {
  10. class Osoba : INotifyPropertyChanged
  11. {
  12. private string _Imie;
  13. private string _Nazwisko;
  14. private string _Adres;
  15. private string _Image;
  16. public string Imie
  17. {
  18. get { return _Imie; }
  19. set
  20. {
  21. _Imie = value;
  22. PropertyChanged(this, new PropertyChangedEventArgs("Imie"));
  23. }
  24. }
  25. public string Nazwisko
  26. {
  27. get { return _Nazwisko; }
  28. set
  29. {
  30. _Nazwisko = value;
  31. PropertyChanged(this, new PropertyChangedEventArgs("Nazwisko"));
  32. }
  33. }
  34. public string Adres
  35. {
  36. get { return _Adres; }
  37. set
  38. {
  39. _Adres = value;
  40. PropertyChanged(this, new PropertyChangedEventArgs("Miasto"));
  41. }
  42. }
  43. public string Image
  44. {
  45. get { return _Image; }
  46. set
  47. {
  48. _Image = value;
  49. PropertyChanged(this, new PropertyChangedEventArgs("Image"));
  50. }
  51. }
  52.  
  53. public Osoba(string imie, string nazwisko, string adres,string image)
  54. {
  55. this.Imie = imie;
  56. this.Nazwisko = nazwisko;
  57. this.Adres = adres;
  58. this.Image = image;
  59. }
  60. public event PropertyChangedEventHandler PropertyChanged = delegate { };
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement