Ejemplo n.º 1
0
	protected void SetContentText1( sITEM _sitem, Item _item)
	{
		bool isUseSeal = true;
		bool isUseDump = true;
		bool isUseTrade = true;
		bool isUseStorge = true;
		bool isUseCosSynthesis = true;
		if( null != _sitem)
		{
			/*if( 0 != ( ( sbyte)eITEMATTRIBUTE.eITEMATTRIBUTE_SEAL & _sitem.nAttribute))
				isUseSeal = false;
			if( 0 != ( ( sbyte)eITEMATTRIBUTE.eITEMATTRIBUTE_DUMP & _sitem.nAttribute))
				isUseDump = false;
			if( 0 != ( ( sbyte)eITEMATTRIBUTE.eITEMATTRIBUTE_TRADE_LIMIT & _sitem.nAttribute))
				isUseTrade = false;
			if( 0 != ( ( sbyte)eITEMATTRIBUTE.eITEMATTRIBUTE_STORAGE_LIMIT & _sitem.nAttribute))
				isUseStorge = false;*/

			isUseTrade = _sitem.IsTradeEnable();

		}

		if( null != _item)
		{
			isUseSeal = _item.ItemData.isShopSell;
			isUseDump = !_item.ItemData.isDump;
			isUseStorge = !_item.ItemData.m_bItem_Storage_Limit;
		}

		m_sbtemp.Remove( 0, m_sbtemp.Length);

		bool bcheck = false;
		if ( true == _item.ItemData.isTradeLimit || false == isUseTrade)
		{
			bcheck = true;
			m_sbtemp.Append( AsTableManager.Instance.GetTbl_String(1116));
		}

		if ( false == _item.ItemData.isShopSell || false == isUseSeal)
		{
			if( true == bcheck)
				m_sbtemp.Append( ", ");
			m_sbtemp.Append( AsTableManager.Instance.GetTbl_String(1146));
			bcheck = true;
		}

		if ( true == _item.ItemData.isDump || false == isUseDump)
		{
			if( true == bcheck)
				m_sbtemp.Append( ", ");
			m_sbtemp.Append( AsTableManager.Instance.GetTbl_String(383));
			bcheck = true;
		}

		if ( true == _item.ItemData.m_bItem_Storage_Limit || false == isUseStorge)
		{
			if( true == bcheck)
				m_sbtemp.Append( ", ");
			m_sbtemp.Append( AsTableManager.Instance.GetTbl_String(405));
			bcheck = true;
		}

		if ( _item.ItemData.GetItemType () == Item.eITEM_TYPE.CosEquipItem && _item.ItemData.m_Item_MixEnchant == false) 
		{
			if( true == bcheck)
				m_sbtemp.Append( ", ");
			m_sbtemp.Append( AsTableManager.Instance.GetTbl_String(2427));
			bcheck = true;

			isUseCosSynthesis = false;
		}

		if( true == _item.ItemData.isTradeLimit ||
			false == _item.ItemData.isShopSell ||
			true == _item.ItemData.isDump ||
			true == _item.ItemData.m_bItem_Storage_Limit ||
			false == isUseTrade ||
			false == isUseSeal ||
			false == isUseDump ||
			false == isUseStorge || 
		    false == isUseCosSynthesis )
		{
			m_sbtemp.Append( " ");
			m_sbtemp.Append( AsTableManager.Instance.GetTbl_String(382));
		}

		contentText_1.Text = m_sbtemp.ToString();
	}