SHARE
TWEET

Untitled




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 GOT_PTTK_PRACOWNIK.Model
- {
- public class TurystaModel : INotifyPropertyChanged, IComparable<TurystaModel>
- {
- private long id;
- private string imie;
- private string nazwisko;
- public long Id
- {
- get
- {
- return id;
- }
- set
- {
- if(id!=value)
- {
- id = value;
- RaisePropertyChanged("Id");
- }
- }
- }
- public string Imie{
- get{
- return imie;
- }
- set
- {
- if(imie!=value)
- {
- imie = value;
- RaisePropertyChanged("Imie");
- }
- }
- }
- public string Nazwisko
- {
- get
- {
- return nazwisko;
- }
- set
- {
- if (nazwisko != value)
- {
- nazwisko = value;
- RaisePropertyChanged("Nazwisko");
- }
- }
- }
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged(string property)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(property));
- }
- }
- public int CompareTo(TurystaModel other)
- {
- return id.CompareTo(other.Id);
- }
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.