TFTPServerEventArgs.cs
Upload User: hhy9292
Upload Date: 2014-10-04
Package Size: 37k
Code Size: 1k
Category:

Ftp Client

Development Platform:

Visual C++

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TFTPUtil
  5. {
  6.     /// <summary>
  7.     /// A delegate for the TFTP server event handler
  8.     /// </summary>
  9.     /// <param name="sender">An object representing the sender of the event</param>
  10.     /// <param name="e">The event arguments</param>
  11.     public delegate void TFTPServerEventHandler(object sender, TFTPServerEventArgs e);
  12.     /// <summary>
  13.     /// A class specifying the arguments for the TFTP server event
  14.     /// </summary>
  15.     public class TFTPServerEventArgs : EventArgs
  16.     {
  17.         private string DisplayString;
  18.         /// <summary>
  19.         /// A class that defines the TFTP server event arguments
  20.         /// </summary>
  21.         /// <param name="EventString">The event message to display</param>
  22.         public TFTPServerEventArgs(string EventString)
  23.         {
  24.             this.DisplayString = EventString;
  25.         }
  26.         /// <summary>
  27.         /// Gets the event message to display
  28.         /// </summary>
  29.         public string EventString
  30.         {
  31.             get
  32.             {
  33.                 return DisplayString;
  34.             }
  35.         }
  36.     }
  37. }