Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Text;
  5.  
  6. namespace LC_Points.Model
  7. {
  8. public class ScoreModel : INotifyPropertyChanged
  9. {
  10.  
  11.  
  12.  
  13. // The name of the subject.
  14. public string Subject { get; set; }
  15.  
  16. // The type of Grade, eg, A, B2 etc..
  17. public string Grade { get; set; }
  18.  
  19. // The points paired with each grade type.
  20. public int Points { get; set; }
  21.  
  22. private int _count;
  23.  
  24. public int Count
  25. {
  26. get
  27. {
  28. return _count;
  29.  
  30. }
  31. set
  32. {
  33. this._count = value;
  34. this.RaisePropertyChanged("Count");
  35. }
  36. }
  37.  
  38.  
  39.  
  40.  
  41. public event PropertyChangedEventHandler PropertyChanged;
  42.  
  43. private void RaisePropertyChanged(string propertyName)
  44. {
  45. if (this.PropertyChanged != null)
  46. {
  47. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  48. }
  49. }
  50.  
  51.  
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement