|
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace TBBT
{
public class SeasonViewModel : INotifyPropertyChanged
{
private string _header;
/// <summary>
/// Sample ViewModel property; this property is used in the view to display its value using a Binding.
/// </summary>
/// <returns></returns>
public string Header
{
get
{
return _header;
}
set
{
if (value != _header)
{
_header = value;
NotifyPropertyChanged("Header");
}
}
}
private string _details;
/// <summary>
/// Sample ViewModel property; this property is used in the view to display its value using a Binding.
/// </summary>
/// <returns></returns>
public string Details
{
get
{
return _details;
}
set
{
if (value != _details)
{
_details = value;
NotifyPropertyChanged("Details");
}
}
}
private int seasonId;
/// <summary>
/// Sample ViewModel property; this property is used in the view to display its value using a Binding.
/// </summary>
/// <returns></returns>
public int SeasonId
{
get
{
return seasonId;
}
set
{
if (value != seasonId)
{
seasonId = value;
NotifyPropertyChanged("SeasonId");
}
}
}
private string _imageUrl;
/// <summary>
/// Sample ViewModel property; this property is used in the view to display its value using a Binding.
/// </summary>
/// <returns></returns>
public string ImageUrl
{
get
{
return _imageUrl;
}
set
{
if (value != _imageUrl)
{
_imageUrl = value;
NotifyPropertyChanged("ImageUrl");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.