Advertisement
Guest User

Untitled

a guest
Feb 8th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.54 KB | None | 0 0
  1. using System;
  2. using System.Net;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Documents;
  6. using System.Windows.Ink;
  7. using System.Windows.Input;
  8. using System.Windows.Media;
  9. using System.Windows.Media.Animation;
  10. using System.Windows.Shapes;
  11. using System.ComponentModel;
  12.  
  13. namespace LasnaoloAppsi
  14. {
  15.     public class Kurssit : INotifyPropertyChanged
  16.     {
  17.         public event PropertyChangedEventHandler PropertyChanged;
  18.         private string _Oppilaanimi;
  19.         private bool _IsChecked;
  20.         public string ID { get; set; }
  21.         public string Tag { get; set; }
  22.         public string RyhmanNimi { get; set; }
  23.  
  24.         public void OnPropertyChanged(string propertyName)
  25.         {
  26.             if (PropertyChanged != null)
  27.             {
  28.                 PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  29.             }
  30.         }
  31.  
  32.         public string OppilaanNimi
  33.         {
  34.             get { return _Oppilaanimi; }
  35.            
  36.             set
  37.             {
  38.                 if (_Oppilaanimi != value)
  39.                 {
  40.                     _Oppilaanimi = value;
  41.                     OnPropertyChanged("OppilaanNimi");
  42.                 }
  43.             }
  44.         }
  45.  
  46.         public bool IsChecked
  47.         {
  48.             get { return _IsChecked; }
  49.             set
  50.             {
  51.                 if (_IsChecked != value)
  52.                 {
  53.                     _IsChecked = value;
  54.                     OnPropertyChanged("OppilaanNimi");
  55.                 }
  56.             }
  57.         }
  58.  
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement