using System;
using System.Drawing;
using System.Windows.Forms;

namespace Netlm.DataGridGost
{
	/// <summary>
	/// DataGridIntTextColumn 的摘要说明。
	/// </summary>
	public class DataGridIntTextColumn : DataGridColorBaseColumn
	{
		public DataGridIntTextColumn()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
		
		private string[] _IntTextList;
		public string[] IntTextList
		{
			get
			{
				return this._IntTextList;
			}
			set
			{
				this._IntTextList = value;
			}
		}
		
		protected override object GetColumnValueAtRow(System.Windows.Forms.CurrencyManager source,int rowNum)
		{
			object obj = base.GetColumnValueAtRow(source,rowNum);
			string result = string.Empty;
			if (obj.GetType() == typeof(int))
			{
				int num = (int) obj;
				if (num >= 0)
				{
					result =  IntTextList[num];
				}
			}
			return result;
		}
		
	}
}
