|
using System;
namespace NotifyMessageDemo
{
public class NotifyMessage
{
private readonly string _skinName;
private readonly string _headerText;
private readonly string _bodyText;
private readonly Action _clickAction;
public NotifyMessage(string skinName, string headerText, string bodyText, Action clickAction)
{
_skinName = skinName;
_headerText = headerText;
_bodyText = bodyText;
_clickAction = clickAction;
}
public string SkinName
{
get { return _skinName; }
}
public string HeaderText
{
get { return _headerText; }
}
public string BodyText
{
get { return _bodyText; }
}
public Action OnClick
{
get { return _clickAction; }
}
}
}
|
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.
Elvin Cheng is currently living in Woodlands, Singapore. He has been developing applications with the .NET Framework, using C# and ASP.NET since October 2002. Elvin specializes in building Real-time monitoring and tracking information system for Semi-conductor manufacturing industry. During his spare time, he enjoys reading books, watching movie and gym.