Created
May 4, 2015 17:22
-
-
Save BrianJVarley/38a276539b5ca0bed377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Text; | |
namespace LC_Points.Model | |
{ | |
public class Grade : INotifyPropertyChanged | |
{ | |
// The name of the subject. | |
public string subject { get; set; } | |
// The type of Grade, eg, A, B2 etc.. | |
public string grade { get; set; } | |
// The points paired with each grade type. | |
public int points { get; set; } | |
private int _count; | |
public int Count | |
{ | |
get | |
{ | |
return _count; | |
} | |
set | |
{ | |
_count = value; | |
RaisePropertyChanged("Count"); | |
} | |
} | |
public event PropertyChangedEventHandler PropertyChanged; | |
private void RaisePropertyChanged(string propertyName) | |
{ | |
if (this.PropertyChanged != null) | |
{ | |
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment