www.pudn.com > TFTPUtil_Class_Version_1.3.0.zip > TFTPServerEventArgs.cs


using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace TFTPUtil 
{ 
    ///  
    /// A delegate for the TFTP server event handler 
    ///  
    /// An object representing the sender of the event 
    /// The event arguments 
    public delegate void TFTPServerEventHandler(object sender, TFTPServerEventArgs e); 
 
    ///  
    /// A class specifying the arguments for the TFTP server event 
    ///  
    public class TFTPServerEventArgs : EventArgs 
    { 
        private string DisplayString; 
 
        ///  
        /// A class that defines the TFTP server event arguments 
        ///  
        /// The event message to display 
        public TFTPServerEventArgs(string EventString) 
        { 
            this.DisplayString = EventString; 
        } 
 
        ///  
        /// Gets the event message to display 
        ///  
        public string EventString 
        { 
            get 
            { 
                return DisplayString; 
            } 
        } 
    } 
}