Click here to Skip to main content
15,897,315 members
Articles / Programming Languages / C#

SMTP and POP3 Mail Server

Rate me:
Please Sign up or sign in to vote.
4.88/5 (96 votes)
29 Sep 20031 min read 1M   19K   315  
An SMTP and POP3 mail server written using the .NET Framework and C#.
using System;

namespace LumiSoft.UI
{
	/// <summary>
	/// 
	/// </summary>
	public interface IWValidate
	{
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		bool Validate();
	}

	/// <summary>
	/// 
	/// </summary>
	public class WValidate_EventArgs
	{
		private string m_ControlName    = "";
		private object m_Value          = null;
		private bool   m_IsValid        = true;
		private bool   m_AllowMoveFocus = true;
		private bool   m_Flash          = true;

		/// <summary>
		/// 
		/// </summary>
		/// <param name="controlName"></param>
		/// <param name="controlValue"></param>
		public WValidate_EventArgs(string controlName,object controlValue)
		{
			m_ControlName = controlName;
			m_Value       = controlValue;
		}

		#region Properties Implementation

		/// <summary>
		/// Control name which raised event.
		/// </summary>
		public string ControlName
		{
			get{ return m_ControlName; }
		}

		/// <summary>
		/// Controls value.
		/// </summary>
		public object Value
		{
			get{ return m_Value; }
		}

		/// <summary>
		/// Set false if not validated successfully.
		/// </summary>
		public bool IsValid
		{
			get{ return m_IsValid; }

			set{ m_IsValid = value; }
		}

		/// <summary>
		/// If false, control doesn't allow to move focus to next contol if validation failed.
		/// </summary>
		public bool AllowMoveFocus
		{
			get{ return m_AllowMoveFocus; }

			set{ m_AllowMoveFocus = value; }
		}

		/// <summary>
		/// If true, bilnks control if validation failed.
		/// </summary>
		public bool FlashControl
		{
			get{ return m_Flash; }

			set{ m_Flash = value; }
		}

		#endregion

	}

	/// <summary>
	/// 
	/// </summary>
	public delegate void WValidate_EventHandler(object sender,WValidate_EventArgs e);
}

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions