www.pudn.com > TFTPUtil_Source_Version_1.3.0.zip > TFTPServerProcessEventArgs.cs
using System;
using System.Collections.Generic;
using System.Text;
using NSpring.Logging;
namespace TFTPUtil
{
///
/// A delegate for the TFTP server event handler
///
/// An object representing the sender of the event
/// The event arguments
public delegate void TFTPServerProcessEventHandler(object sender, TFTPServerProcessEventArgs e);
///
/// A class specifying the arguments for the TFTP server event
///
public class TFTPServerProcessEventArgs : EventArgs
{
private string DisplayString;
private Level EventDisplayLevel;
///
/// A class that defines the TFTP server event arguments
///
/// The event message to display
public TFTPServerProcessEventArgs(string EventString, Level EventLevel)
{
this.DisplayString = EventString;
this.EventDisplayLevel = EventLevel;
}
///
/// Gets the event message to display
///
public string EventString
{
get
{
return DisplayString;
}
}
///
/// Gets the event level
///
public Level EventLevel
{
get
{
return EventDisplayLevel;
}
}
}
}