Advertisement
Guest User

Untitled

a guest
Feb 8th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.36 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.  
  25.         public string OppilaanNimi
  26.         {
  27.             get { return _Oppilaanimi; }
  28.             set
  29.             {
  30.                 if (_Oppilaanimi != value)
  31.                 {
  32.                     _Oppilaanimi = value;
  33.                     PropertyChanged(this, new PropertyChangedEventArgs("OppilaanNimi"));
  34.                 }
  35.             }
  36.         }
  37.  
  38.         public bool IsChecked
  39.         {
  40.             get { return _IsChecked; }
  41.             set
  42.             {
  43.                 if (_IsChecked != value)
  44.                 {
  45.                     _IsChecked = value;
  46.                     PropertyChanged(this, new PropertyChangedEventArgs("IsChecked"));
  47.                 }
  48.             }
  49.         }
  50.  
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement