Esempio n. 1
0
		//-----------------------------------------------------------------------
		public static List<ImageTypes> Static_GetList(string LogFilePath, string LogFileName, string constr)
		{
			List<ImageTypes> RetVal = new List<ImageTypes>();
			ImageTypes m_ImageTypes = new ImageTypes(constr);
			try
			{
				RetVal = m_ImageTypes.GetList(LogFilePath, LogFileName);
			}
			catch (Exception ex)
			{
				LogFiles.WriteLog(ex.Message, LogFilePath + "\\Exception", LogFileName + "." + m_ImageTypes.GetType().Name + "." + MethodBase.GetCurrentMethod().Name);
			}
			return RetVal;
		}
Esempio n. 2
0
		//-----------------------------------------------------------------------
		public static byte Static_GetIdByImageTypeName(string LogFilePath, string LogFileName, string constr, string ImageTypeName)
		{
			byte RetVal = 0;
			ImageTypes m_ImageTypes = new ImageTypes(constr);
			try
			{
				m_ImageTypes = m_ImageTypes.Get(LogFilePath, LogFileName, ImageTypeName);
				if (m_ImageTypes.ImageTypeId > 0)
				{
					RetVal = m_ImageTypes.ImageTypeId;
				}
			}
			catch (Exception ex)
			{
				LogFiles.WriteLog(ex.Message, LogFilePath + "\\Exception", LogFileName + "." + m_ImageTypes.GetType().Name + "." + MethodBase.GetCurrentMethod().Name);
			}
			return RetVal;
		}