⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 agentinfo.cs

📁 一个通用的数据库访问层
💻 CS
字号:
using System;

namespace YariSoft.Utils
{
	[Serializable]
	public class AgentInfo
	{
		#region Local variables
		private bool	_agentActive		= true;
		private bool	_agentInput			= false;
		private string	_ConfigFileName	= "";

		#endregion

		#region Properties
		public bool AgentActive
		{
			get{ return _agentActive; }
			set{ this._agentActive = value; }
		}

		public bool AgentInput
		{
			get{ return this._agentInput; }
			set{ this._agentInput = value; }
		}
		public string ConfigFileName
		{
			get{ return this._ConfigFileName; }
			set{ this._ConfigFileName = value; }
		}
		#endregion

		#region Constructor/Destructor
		public AgentInfo()
		{
		}
		#endregion

		#region Public functions
		public bool SaveToFile( String FileName )
		{
			return YariSoft.Utils.ConfigFile.SaveToFile( ref FileName, this, false );
		}

		public static AgentInfo LoadFromFile( string FileName )
		{
			AgentInfo result = ( AgentInfo )YariSoft.Utils.ConfigFile.LoadFromFile( ref FileName, false );
			if( result == null ){
				result = new AgentInfo();
			}
			return result;
		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -